3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 1; function doit () { global $a; break; $a = 2; } echo $a;
based on epSca
Output for 7.0.0 - 7.1.6
Fatal error: 'break' not in the 'loop' or 'switch' context in /in/f5Qov on line 6
Process exited with code 255.
Output for 4.3.0 - 5.6.30, hhvm-3.10.1 - 3.17.3
1