3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function __autoload($class) { print "Loading $class"; } $c = new ReflectionMethod('test', 'foo');
based on MKDM6
Output for 7.2.0
Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /in/1DtcD on line 3 Loading test Fatal error: Uncaught ReflectionException: Class test does not exist in /in/1DtcD:8 Stack trace: #0 /in/1DtcD(8): ReflectionMethod->__construct('test', 'foo') #1 {main} thrown in /in/1DtcD on line 8
Process exited with code 255.
Output for 7.0.0 - 7.1.10
Loading test Fatal error: Uncaught ReflectionException: Class test does not exist in /in/1DtcD:8 Stack trace: #0 /in/1DtcD(8): ReflectionMethod->__construct('test', 'foo') #1 {main} thrown in /in/1DtcD on line 8
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Loading test Fatal error: Uncaught exception 'ReflectionException' with message 'Class test does not exist' in /in/1DtcD:8 Stack trace: #0 /in/1DtcD(8): ReflectionMethod->__construct('test', 'foo') #1 {main} thrown in /in/1DtcD on line 8
Process exited with code 255.