3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (false) { require 'nonexistentFileWhichWillNotBeIncluded.php'; } else { require 'thisWillThrowAnError,ButNotTheOtherOne.php'; }
Output for 5.1.0 - 7.2.0
Warning: require(thisWillThrowAnError,ButNotTheOtherOne.php): failed to open stream: No such file or directory in /in/OfJOr on line 6 Fatal error: require(): Failed opening required 'thisWillThrowAnError,ButNotTheOtherOne.php' (include_path='.:') in /in/OfJOr on line 6
Process exited with code 255.
Output for 4.3.2 - 5.0.5
Warning: main(thisWillThrowAnError,ButNotTheOtherOne.php): failed to open stream: No such file or directory in /in/OfJOr on line 6 Fatal error: main(): Failed opening required 'thisWillThrowAnError,ButNotTheOtherOne.php' (include_path='.:') in /in/OfJOr on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: main(thisWillThrowAnError,ButNotTheOtherOne.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/OfJOr on line 6 Fatal error: main() [http://www.php.net/function.main]: Failed opening required 'thisWillThrowAnError,ButNotTheOtherOne.php' (include_path='.:') in /in/OfJOr on line 6