3v4l.org

run code in 200+ 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.4.0
Array ( [0] => 1 [1] => 3 [2] => 5 [3] => 2 [4] => 4 [5] => 6 )