3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo constant('SomeClass::NON_EXISTING');
Output for 8.0.1 - 8.0.22, 8.1.0 - 8.1.9
Fatal error: Class "SomeClass" not found in /in/NMPXC on line 3
Process exited with code 255.
Output for 7.4.0 - 7.4.30
Warning: constant(): Couldn't find constant SomeClass::NON_EXISTING in /in/NMPXC on line 3

preferences:
26.6 ms | 410 KiB | 5 Q