3v4l.org

run code in 500+ PHP versions simultaneously
<?php if($str == 'test'){ if($id == 5){ break; } echo "Hello world!!"; }
Output for 7.1.25 - 7.1.32, 7.2.0 - 7.2.22, 7.3.0 - 7.3.9, 8.3.5
Fatal error: 'break' not in the 'loop' or 'switch' context in /in/evYJY on line 4
Process exited with code 255.

preferences:
43.64 ms | 660 KiB | 3 Q