3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ob_start(); $includeReturn = include 'nonexistentfile'; var_dump($includeReturn); var_dump(ob_get_clean());
Output for 5.2.3 - 5.6.28, 7.0.0 - 7.1.0
string(231) " Warning: include(nonexistentfile): failed to open stream: No such file or directory in /in/589kv on line 4 Warning: include(): Failed opening 'nonexistentfile' for inclusion (include_path='.:') in /in/589kv on line 4 bool(false) "
Output for hhvm-3.10.0 - 3.12.0
Warning: File not found: nonexistentfile in /in/589kv on line 4 string(12) "bool(false) "
Output for 5.1.0 - 5.2.2
string(399) "<br /> <b>Warning</b>: include(nonexistentfile) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in <b>/in/589kv</b> on line <b>4</b><br /> <br /> <b>Warning</b>: include() [<a href='function.include'>function.include</a>]: Failed opening 'nonexistentfile' for inclusion (include_path='.:') in <b>/in/589kv</b> on line <b>4</b><br /> bool(false) "
Output for 4.4.3 - 5.0.5
string(387) "<br /> <b>Warning</b>: main(nonexistentfile) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/in/589kv</b> on line <b>4</b><br /> <br /> <b>Warning</b>: main() [<a href='function.include'>function.include</a>]: Failed opening 'nonexistentfile' for inclusion (include_path='.:') in <b>/in/589kv</b> on line <b>4</b><br /> bool(false) "
Output for 4.3.2 - 4.4.2
string(293) "<br /> <b>Warning</b>: main(nonexistentfile): failed to open stream: No such file or directory in <b>/in/589kv</b> on line <b>4</b><br /> <br /> <b>Warning</b>: main(): Failed opening 'nonexistentfile' for inclusion (include_path='.:') in <b>/in/589kv</b> on line <b>4</b><br /> bool(false) "
Output for 4.3.0 - 4.3.1
string(421) "<br /> <b>Warning</b>: main(nonexistentfile) [<a href='http://www.php.net/function.main'>function.main</a>]: failed to create stream: No such file or directory in <b>/in/589kv</b> on line <b>4</b><br /> <br /> <b>Warning</b>: main() [<a href='http://www.php.net/function.main'>function.main</a>]: Failed opening 'nonexistentfile' for inclusion (include_path='.:') in <b>/in/589kv</b> on line <b>4</b><br /> bool(false) "