3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach (range(1, 10) as $i) { switch ($i) { case 1; echo 'first' . PHP_EOL; break; case 2: echo 'second' . PHP_EOL; continue; break; } echo $i . PHP_EOL; }
Output for 5.6.38 - 7.2.10
first 1 second 2 3 4 5 6 7 8 9 10