3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(2,3,4); $b = array(5); $c = array_merge($a, $b); $d = $a + $b; var_export($c); var_export($d);
based on akjqE
Output for 4.3.0 - 7.2.11
array ( 0 => 2, 1 => 3, 2 => 4, 3 => 5, )array ( 0 => 2, 1 => 3, 2 => 4, )