3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { function __toString() { return "C:\a.php"; } } $a = new A; require $a;
Output for 5.2.0 - 7.1.0
Warning: require(C:\a.php): failed to open stream: No such file or directory in /in/CILKm on line 12 Fatal error: require(): Failed opening required 'C:\a.php' (include_path='.:') in /in/CILKm on line 12
Process exited with code 255.
Output for 5.1.0 - 5.1.6
Notice: Object of class A to string conversion in /in/CILKm on line 12 Warning: require(Object): failed to open stream: No such file or directory in /in/CILKm on line 12 Fatal error: require(): Failed opening required 'Object' (include_path='.:') in /in/CILKm on line 12
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Notice: Object of class A to string conversion in /in/CILKm on line 12 Warning: main(Object): failed to open stream: No such file or directory in /in/CILKm on line 12 Fatal error: main(): Failed opening required 'Object' (include_path='.:') in /in/CILKm on line 12
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Notice: Object to string conversion in /in/CILKm on line 12 Warning: main(Object): failed to open stream: No such file or directory in /in/CILKm on line 12 Fatal error: main(): Failed opening required 'Object' (include_path='.:') in /in/CILKm on line 12
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Object to string conversion in /in/CILKm on line 12 Warning: main(Object) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/CILKm on line 12 Fatal error: main() [http://www.php.net/function.main]: Failed opening required 'Object' (include_path='.:') in /in/CILKm on line 12