3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr1 = array(1, 2, 3, 4); $arr2 = array("a" => array(1, 2, 3)); $arr3 = array(); print_r(array_merge_recursive($arr1, $arr2));
Output for 5.6.30
Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [a] => Array ( [0] => 1 [1] => 2 [2] => 3 ) )