3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function __autoload($c) { print 'loading '. $c; } $x = "ReflectionClass('a')" ; $ref = new $x; var_dump($ref);
based on jVTQv
Output for 7.2.0
Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /in/JnSZM on line 3 Fatal error: Uncaught Error: Class 'ReflectionClass('a')' not found in /in/JnSZM:6 Stack trace: #0 {main} thrown in /in/JnSZM on line 6
Process exited with code 255.
Output for 7.0.0 - 7.1.10
Fatal error: Uncaught Error: Class 'ReflectionClass('a')' not found in /in/JnSZM:6 Stack trace: #0 {main} thrown in /in/JnSZM on line 6
Process exited with code 255.
Output for 5.4.24 - 5.6.28
Fatal error: Class 'ReflectionClass('a')' not found in /in/JnSZM on line 6
Process exited with code 255.
Output for 5.3.19 - 5.4.23
loading ReflectionClass('a') Fatal error: Class 'ReflectionClass('a')' not found in /in/JnSZM on line 6
Process exited with code 255.