3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $col = 0; foreach (range(1,100) as $num) { echo $num; if (++$col == 2) { $col = 0; echo "\n"; } }
Output for 4.3.0 - 7.1.0
12 34 56 78 910 1112 1314 1516 1718 1920 2122 2324 2526 2728 2930 3132 3334 3536 3738 3940 4142 4344 4546 4748 4950 5152 5354 5556 5758 5960 6162 6364 6566 6768 6970 7172 7374 7576 7778 7980 8182 8384 8586 8788 8990 9192 9394 9596 9798 99100