3v4l.org

run code in 500+ PHP versions simultaneously
<?php print Some\Class\DoesNot\Exist::class; ?>
Output for 8.0.0, 8.1.23 - 8.1.34, 8.2.10 - 8.2.31, 8.3.0 - 8.3.31, 8.4.1 - 8.4.22, 8.5.0 - 8.5.7
Some\Class\DoesNot\Exist
Output for 7.3.0 - 7.3.25, 7.4.0 - 7.4.13
Parse error: syntax error, unexpected 'Class' (T_CLASS), expecting identifier (T_STRING) in /in/AEJP5 on line 2
Process exited with code 255.

preferences:
71.22 ms | 1049 KiB | 4 Q