3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $i = 2; while(++$i) { switch ($i) { case 1: echo 1; break 1; case 2: echo 2; break 2; case 3: echo 3; break 3; default: echo 'd'; break; } }
based on M6OTa
Output for 7.0.0 - 7.0.1
Fatal error: Cannot 'break' 3 levels in /in/vYQSK on line 14
Process exited with code 255.
Output for 5.3.21 - 5.6.16
3 Fatal error: Cannot break/continue 3 levels in /in/vYQSK on line 14
Process exited with code 255.