3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function __autoload($class) { print "Loading $class"; } class_alias('stdClass', 'test2');
based on JojUd
Output for 7.2.0 - 7.3.0alpha1
Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /in/TQHKR on line 3 Warning: First argument of class_alias() must be a name of user defined class in /in/TQHKR on line 8
Output for 5.3.0 - 7.1.7
Warning: First argument of class_alias() must be a name of user defined class in /in/TQHKR on line 8
Output for 5.0.0 - 5.2.17
Fatal error: Call to undefined function class_alias() in /in/TQHKR on line 8
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: class_alias() in /in/TQHKR on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: class_alias() in /in/TQHKR on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: class_alias() in /in/TQHKR on line 8