3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [1, 3, 5]; $b = [2, 4, 6]; $ab = array_merge($a, $b); print_r($ab);
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.30, 8.0.0 - 8.0.20, 8.1.0 - 8.1.7
Array ( [0] => 1 [1] => 3 [2] => 5 [3] => 2 [4] => 4 [5] => 6 )

preferences:
41.85 ms | 410 KiB | 5 Q