3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(array_merge(['a', 'b', 'c'],['d', 'e', 'f'])); var_dump(array_merge([0=>'a', 1=>'b', 2=>'c'],[0=>'d', 1=>'e', 2=>'f']));
based on mvESB
Output for 5.6.0 - 5.6.30, hhvm-3.12.14 - 3.17.3, 7.0.0 - 7.3.0rc3
array(6) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> string(1) "c" [3]=> string(1) "d" [4]=> string(1) "e" [5]=> string(1) "f" } array(6) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> string(1) "c" [3]=> string(1) "d" [4]=> string(1) "e" [5]=> string(1) "f" }