3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $first = ['a', 'b']; $second = ['c', 'd']; var_dump($first + $second); var_dump(array_merge($second, $first));
Output for 5.6.38 - 7.3.0rc3
array(2) { [0]=> string(1) "a" [1]=> string(1) "b" } array(4) { [0]=> string(1) "c" [1]=> string(1) "d" [2]=> string(1) "a" [3]=> string(1) "b" }