3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i=1; $j=1; $n=24;// upto which no to be displayed while($i < $n) { if($j % 2 != 0) { echo "\t\t".$i."\t\t".($i+1)."\t\t".($i+2)."\n"; $i = $i+3; } else { echo $i."\t".($i+1)."\t".($i+2)."\t".($i+3)."\n"; $i = $i+4; } $j++; }
Output for 4.3.0 - 7.1.0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24