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($array1);
Output for 4.3.0 - 7.1.0
Array ( [nested] => Array ( [orig] => 1 [numarr] => Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 ) ) )