3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Switch {}
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.13
Parse error: syntax error, unexpected 'Switch' (T_SWITCH), expecting identifier (T_STRING) in /in/0Mbkh on line 3
Process exited with code 255.
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.34, 8.3.0 - 8.3.5
Parse error: syntax error, unexpected token "switch", expecting identifier in /in/0Mbkh on line 3
Process exited with code 255.

preferences:
31.6 ms | 1155 KiB | 8 Q