3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = 0; $end = 10; $comparator = '<'; $comparatorExpression = null; $i = $start; for ( ; ; ) { switch ($comparator) { case '<'; $comparatorExpression = "$i < $end"; break; } if (eval("return {$i} {$comparator} {$end};")) { echo $i; $i++; continue; } }
Output for 4.3.0 - 7.1.0
0123456789
Process exited with code 137.