3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function __autoload($class_name) { include strtolower($class_name) . '.php'; } $Employee = new Emp();
Output for 7.0.0 - 7.1.0
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 hhvm-3.12.0
Warning: File not found: emp.php in /in/VngFi on line 4 Fatal error: Class undefined: Emp in /in/VngFi on line 8
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
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