3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [343,353,353,646,757,8]; $arr2 = [35,353,646,75,23,23]; $count = max(count($arr1), count($arr2)); for($i = 0; $i< $count; $i++){ echo $arr1[$i] . "\n"; echo $arr2[$i] . "\n\n"; }
based on kp0MQ
Output for 7.1.25 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.23, 7.4.0 - 7.4.11, 8.0.0alpha1 - rc2
343 35 353 353 353 646 646 75 757 23 8 23