3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { function __toString() { return "C:\a.php"; } } $a = new A; include $a;
Output for 5.2.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: include(C:\a.php): failed to open stream: No such file or directory in /in/rvv3G on line 12 Warning: include(): Failed opening 'C:\a.php' for inclusion (include_path='.:') in /in/rvv3G on line 12
Output for hhvm-3.10.0 - 3.12.0
Warning: File not found: C:\a.php in /in/rvv3G on line 12
Output for 5.1.0 - 5.1.6
Notice: Object of class A to string conversion in /in/rvv3G on line 12 Warning: include(Object): failed to open stream: No such file or directory in /in/rvv3G on line 12 Warning: include(): Failed opening 'Object' for inclusion (include_path='.:') in /in/rvv3G on line 12
Output for 5.0.0 - 5.0.5
Notice: Object of class A to string conversion in /in/rvv3G on line 12 Warning: main(Object): failed to open stream: No such file or directory in /in/rvv3G on line 12 Warning: main(): Failed opening 'Object' for inclusion (include_path='.:') in /in/rvv3G on line 12
Output for 4.3.2 - 4.4.9
Notice: Object to string conversion in /in/rvv3G on line 12 Warning: main(Object): failed to open stream: No such file or directory in /in/rvv3G on line 12 Warning: main(): Failed opening 'Object' for inclusion (include_path='.:') in /in/rvv3G on line 12
Output for 4.3.0 - 4.3.1
Notice: Object to string conversion in /in/rvv3G on line 12 Warning: main(Object) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/rvv3G on line 12 Warning: main() [http://www.php.net/function.main]: Failed opening 'Object' for inclusion (include_path='.:') in /in/rvv3G on line 12