3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = 0; $end = 10; $comparator = '<'; $comparatorExpression = null; switch ($comparator) { case '<'; $comparatorExpression = "$i < $end"; break; } for ($i = $start; $comparator; $i++) { echo "$i\n"; }