3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('a0','a1','a2'); $b = array('b0','b1','b2'); var_dump($a + $b); var_dump(array_merge($a, $b));
Output for 4.3.0 - 7.1.0
array(3) { [0]=> string(2) "a0" [1]=> string(2) "a1" [2]=> string(2) "a2" } array(6) { [0]=> string(2) "a0" [1]=> string(2) "a1" [2]=> string(2) "a2" [3]=> string(2) "b0" [4]=> string(2) "b1" [5]=> string(2) "b2" }