3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('01'=>1, '02'=>73); $b = array('10'=>11, '11'=>23); var_dump($a,$b); var_dump(array_merge($a,$b));
based on RgnlR
Output for 4.3.0 - 7.1.7
array(2) { ["01"]=> int(1) ["02"]=> int(73) } array(2) { [10]=> int(11) [11]=> int(23) } array(4) { ["01"]=> int(1) ["02"]=> int(73) [0]=> int(11) [1]=> int(23) }