3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $t1 = [3 => 21, 'test1' => 'test']; $t2 = [3 => 221, 'test1' => 'test2']; var_dump(array_merge($t1, $t2));
based on S7i6I
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
array(3) { [0]=> int(21) ["test1"]=> string(5) "test2" [1]=> int(221) }