array_merge vs array_replace vs + in PHP

See the corresponding post for more information.

The data

The results

TestResult
array_merge($newSong, $oldSong) array ( 'band' => 'new edition', 'title' => 'Mr Telephone Man', 'year' => '1984', )
array_replace($newSong, $oldSong) array ( 'band' => 'new edition', 'title' => 'Mr Telephone Man', 'year' => '1984', )
$newSong + $oldSong array ( 'band' => 'new edition', 'title' => 'you are not my kind of girl', 'year' => '1984', )
array_merge($oldSong, $newSong) array ( 'band' => 'new edition', 'title' => 'you are not my kind of girl', 'year' => '1984', )
array_replace($oldSong, $newSong) array ( 'band' => 'new edition', 'title' => 'you are not my kind of girl', 'year' => '1984', )
$oldSong + $newSong array ( 'band' => 'new edition', 'title' => 'Mr Telephone Man', 'year' => '1984', )