3v4l.org

run code in 300+ 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
Fatal error: 'break' not in the 'loop' or 'switch' context in /in/evYJY on line 4
Process exited with code 255.

preferences:
192.58 ms | 1395 KiB | 48 Q