3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ob_start(); $includeReturn = include 'nonexistentfile'; var_dump(ob_get_clean()); var_dump($includeReturn);
Output for 5.1.0 - 7.1.0
string(219) " Warning: include(nonexistentfile): failed to open stream: No such file or directory in /in/P9UFL on line 4 Warning: include(): Failed opening 'nonexistentfile' for inclusion (include_path='.:') in /in/P9UFL on line 4 " bool(false)
Output for 4.3.2 - 5.0.5
string(213) " Warning: main(nonexistentfile): failed to open stream: No such file or directory in /in/P9UFL on line 4 Warning: main(): Failed opening 'nonexistentfile' for inclusion (include_path='.:') in /in/P9UFL on line 4 " bool(false)
Output for 4.3.0 - 4.3.1
string(285) " Warning: main(nonexistentfile) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/P9UFL on line 4 Warning: main() [http://www.php.net/function.main]: Failed opening 'nonexistentfile' for inclusion (include_path='.:') in /in/P9UFL on line 4 " bool(false)