3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(array('a'=> 1), array('b' => 2), array('c' => 3)); $b = array(array('a'=> 2), array('b' => 3), array('c' => 4)); var_dump(array_merge($a, $b));
Output for 4.3.0 - 7.1.0
array(6) { [0]=> array(1) { ["a"]=> int(1) } [1]=> array(1) { ["b"]=> int(2) } [2]=> array(1) { ["c"]=> int(3) } [3]=> array(1) { ["a"]=> int(2) } [4]=> array(1) { ["b"]=> int(3) } [5]=> array(1) { ["c"]=> int(4) } }