3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $res1 = array( array('a'=>'aa','b'=>'bb'), array('a'=>'aaa','b'=>'bbb') ); $res2 = array( array('a'=>'a','b'=>'b') ); $res3 = array_merge_recursive($res1 + $res2); var_dump($res3);
Output for 4.3.0 - 7.1.0
array(2) { [0]=> array(2) { ["a"]=> string(2) "aa" ["b"]=> string(2) "bb" } [1]=> array(2) { ["a"]=> string(3) "aaa" ["b"]=> string(3) "bbb" } }