3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function __autoload($class_name) { include strtolower($class_name) . '.php'; } $Employee = new Emp();
Output for 7.2.6
Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /in/VngFi on line 3 Warning: include(): open_basedir restriction in effect. File(emp.php) is not within the allowed path(s): (/tmp:/in) in /in/VngFi on line 4 Warning: include(emp.php): failed to open stream: Operation not permitted in /in/VngFi on line 4 Warning: include(): Failed opening 'emp.php' for inclusion (include_path='.:') in /in/VngFi on line 4 Fatal error: Uncaught Error: Class 'Emp' not found in /in/VngFi:8 Stack trace: #0 {main} thrown in /in/VngFi on line 8
Process exited with code 255.
Output for 7.2.0
Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /in/VngFi on line 3 Warning: include(emp.php): failed to open stream: No such file or directory in /in/VngFi on line 4 Warning: include(): Failed opening 'emp.php' for inclusion (include_path='.:') in /in/VngFi on line 4 Fatal error: Uncaught Error: Class 'Emp' not found in /in/VngFi:8 Stack trace: #0 {main} thrown in /in/VngFi on line 8
Process exited with code 255.
Output for 7.1.20
Warning: include(): open_basedir restriction in effect. File(emp.php) is not within the allowed path(s): (/tmp:/in) in /in/VngFi on line 4 Warning: include(emp.php): failed to open stream: Operation not permitted in /in/VngFi on line 4 Warning: include(): Failed opening 'emp.php' for inclusion (include_path='.:') in /in/VngFi on line 4 Fatal error: Uncaught Error: Class 'Emp' not found in /in/VngFi:8 Stack trace: #0 {main} thrown in /in/VngFi on line 8
Process exited with code 255.
Output for 7.0.0 - 7.1.10
Warning: include(emp.php): failed to open stream: No such file or directory in /in/VngFi on line 4 Warning: include(): Failed opening 'emp.php' for inclusion (include_path='.:') in /in/VngFi on line 4 Fatal error: Uncaught Error: Class 'Emp' not found in /in/VngFi:8 Stack trace: #0 {main} thrown in /in/VngFi on line 8
Process exited with code 255.
Output for 5.1.0 - 5.6.28
Warning: include(emp.php): failed to open stream: No such file or directory in /in/VngFi on line 4 Warning: include(): Failed opening 'emp.php' for inclusion (include_path='.:') in /in/VngFi on line 4 Fatal error: Class 'Emp' not found in /in/VngFi on line 8
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Warning: __autoload(emp.php): failed to open stream: No such file or directory in /in/VngFi on line 4 Warning: __autoload(): Failed opening 'emp.php' for inclusion (include_path='.:') in /in/VngFi on line 4 Fatal error: Class 'Emp' not found in /in/VngFi on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: emp in /in/VngFi on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: emp in /in/VngFi on line 8