3v4l.org

run code in 300+ 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.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
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:
69.41 ms | 1026 KiB | 4 Q