3v4l.org

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