3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $b = $a = array(); for ($i = 0; $i<5; $i++) { $a[] = $i; $b[] = $i; } print_r(array_merge($a, $b));
Output for 4.3.0 - 7.1.0
Array ( [0] => 0 [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 0 [6] => 1 [7] => 2 [8] => 3 [9] => 4 )