3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($i=0; $i<200; $i++ ) { require_once 'foo.php'; require_once 'bar_'.$i.'.php'; }
Output for 5.2.3 - 7.1.0
Warning: require_once(foo.php): failed to open stream: No such file or directory in /in/8etS1 on line 4 Fatal error: require_once(): Failed opening required 'foo.php' (include_path='.:') in /in/8etS1 on line 4
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/8etS1</b> on line <b>4</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/8etS1</b> on line <b>4</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/8etS1</b> on line <b>4</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/8etS1</b> on line <b>4</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/8etS1</b> on line <b>4</b><br /> <br /> <b>Fatal error</b>: main(): Failed opening required 'foo.php' (include_path='.:') in <b>/in/8etS1</b> on line <b>4</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/8etS1</b> on line <b>4</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/8etS1</b> on line <b>4</b><br />