3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php require_once 'foo.php'; require_once 'bar.php';
Output for 5.2.3 - 5.6.28, 7.0.0 - 7.1.0
Warning: require_once(foo.php): failed to open stream: No such file or directory in /in/fIp0m on line 2 Fatal error: require_once(): Failed opening required 'foo.php' (include_path='.:') in /in/fIp0m on line 2
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: File not found: foo.php in /in/fIp0m on line 2
Process exited with code 255.
Output for 5.1.0 - 5.2.2
<br /> <b>Warning</b>: require_once(foo.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in <b>/in/fIp0m</b> on line <b>2</b><br /> <br /> <b>Fatal error</b>: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'foo.php' (include_path='.:') in <b>/in/fIp0m</b> on line <b>2</b><br />
Process exited with code 255.
Output for 4.4.3 - 5.0.5
<br /> <b>Warning</b>: main(foo.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/in/fIp0m</b> on line <b>2</b><br /> <br /> <b>Fatal error</b>: main() [<a href='function.require'>function.require</a>]: Failed opening required 'foo.php' (include_path='.:') in <b>/in/fIp0m</b> on line <b>2</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.2
<br /> <b>Warning</b>: main(foo.php): failed to open stream: No such file or directory in <b>/in/fIp0m</b> on line <b>2</b><br /> <br /> <b>Fatal error</b>: main(): Failed opening required 'foo.php' (include_path='.:') in <b>/in/fIp0m</b> on line <b>2</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Warning</b>: main(foo.php) [<a href='http://www.php.net/function.main'>function.main</a>]: failed to create stream: No such file or directory in <b>/in/fIp0m</b> on line <b>2</b><br /> <br /> <b>Fatal error</b>: main() [<a href='http://www.php.net/function.main'>function.main</a>]: Failed opening required 'foo.php' (include_path='.:') in <b>/in/fIp0m</b> on line <b>2</b><br />