3v4l.org

run code in 300+ PHP versions simultaneously
<?php function __autoload($class) { print "Loading $class"; } $c = new ReflectionClass('test');
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: __autoload() is no longer supported, use spl_autoload_register() instead in /in/MKDM6 on line 3
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /in/MKDM6 on line 3 Loading test Fatal error: Uncaught ReflectionException: Class test does not exist in /in/MKDM6:8 Stack trace: #0 /in/MKDM6(8): ReflectionClass->__construct('test') #1 {main} thrown in /in/MKDM6 on line 8
Process exited with code 255.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.3.32 - 7.3.33
Loading test Fatal error: Uncaught ReflectionException: Class test does not exist in /in/MKDM6:8 Stack trace: #0 /in/MKDM6(8): ReflectionClass->__construct('test') #1 {main} thrown in /in/MKDM6 on line 8
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Loading test Fatal error: Uncaught exception 'ReflectionException' with message 'Class test does not exist' in /in/MKDM6:8 Stack trace: #0 /in/MKDM6(8): ReflectionClass->__construct('test') #1 {main} thrown in /in/MKDM6 on line 8
Process exited with code 255.

preferences:
196.69 ms | 402 KiB | 326 Q