3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a['a'] = array(3 => '123', 5 => '234'); $p = array(6 => '789', 9 => '876'); $a['a'] = array_merge($a['a'], $p); var_dump($a);
based on ic4En
Output for 4.3.0 - 7.2.0
array(1) { ["a"]=> array(4) { [0]=> string(3) "123" [1]=> string(3) "234" [2]=> string(3) "789" [3]=> string(3) "876" } }