3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('a' => 1, 'b' => array('c' => 3, 'd' => 4)); $b = array('a' => 3, 'b' => array('d' => 5, 'e' => 6)); print_r(array_merge_recursive($a, $b));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [a] => Array ( [0] => 1 [1] => 3 ) [b] => Array ( [c] => 3 [d] => Array ( [0] => 4 [1] => 5 ) [e] => 6 ) )