3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); ini_set('display_errors', 1); echo "BEFORE fatal error\n"; continue; echo "AFTER fatal error\n";
Output for 7.1.0 - 7.1.23, 7.2.0 - 7.2.11
Fatal error: 'continue' not in the 'loop' or 'switch' context in /in/Gg5ZW on line 8
Process exited with code 255.
Output for 5.6.38
BEFORE fatal error Fatal error: Cannot break/continue 1 level in /in/Gg5ZW on line 8
Process exited with code 255.

preferences:
171.86 ms | 1386 KiB | 44 Q