3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array ( 'nested' => array ( 'orig' => 1, 'numarr' => array( 1, 2, 3, 4, 5 ) ) ); // array2 $array2 = array ( 'nested' => Array ( 'numarr' => Array ( 6, 7 ) ) ); print_r(array_merge($array1, $array2));
Output for 4.3.0 - 7.1.0
Array ( [nested] => Array ( [numarr] => Array ( [0] => 6 [1] => 7 ) ) )