3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = microtime(true); require_once('foo.php'); echo microtime(true) - $t;
Output for 5.1.0 - 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/JRJvO on line 4 Fatal error: require_once(): Failed opening required 'foo.php' (include_path='.:') in /in/JRJvO on line 4
Process exited with code 255.
Output for hhvm-3.12.0
Fatal error: File not found: foo.php in /in/JRJvO on line 4
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.2 - 5.0.5
Warning: main(foo.php): failed to open stream: No such file or directory in /in/JRJvO on line 4 Fatal error: main(): Failed opening required 'foo.php' (include_path='.:') in /in/JRJvO on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: main(foo.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/JRJvO on line 4 Fatal error: main() [http://www.php.net/function.main]: Failed opening required 'foo.php' (include_path='.:') in /in/JRJvO on line 4