3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = 0; $end = 10; $comparator = '<'; $indecrement = 1; $direction = '+'; $i = $start; for ( ; ; ) { if (eval("return {$i} {$comparator} {$end};")) { echo "$i\n"; if ($direction == '+') { $i += $indecrement; } else { $i -= $indecrement; } continue; } break; }
Output for 4.3.0 - 7.1.0
0 1 2 3 4 5 6 7 8 9