3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a1=array("a"=>"red","b"=>"green"); $a2=array("c"=>"blue","b"=>"yellow"); $c = array_merge_recursive($a1,$a2); $a3=array("c"=>"blue","b"=>"yellow"); print_r(array_merge_recursive($a3,$c));
based on ZpQZ3
Output for 5.6.38 - 7.3.0rc3
Array ( [c] => Array ( [0] => blue [1] => blue ) [b] => Array ( [0] => yellow [1] => green [2] => yellow ) [a] => red )