3v4l.org

run code in 300+ PHP versions simultaneously
<? $a = null; $b = 10; echo $a * $b; echo "\r\n"; break;
Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.31, 7.4.3 - 7.4.32, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
<? $a = null; $b = 10; echo $a * $b; echo "\r\n"; break;
Output for 7.0.0 - 7.0.2, 7.3.32 - 7.3.33, 7.4.33, 8.0.13
Fatal error: 'break' not in the 'loop' or 'switch' context in /in/KpJ7D on line 6
Process exited with code 255.
Output for 5.5.24 - 5.5.31, 5.6.8 - 5.6.17
0 Fatal error: Cannot break/continue 1 level in /in/KpJ7D on line 6
Process exited with code 255.

preferences:
162.85 ms | 401 KiB | 156 Q