3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = file_get_contents('bar'); var_dump(error_get_last());
Output for 5.2.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: file_get_contents(bar): failed to open stream: No such file or directory in /in/aJQJC on line 3 array(4) { ["type"]=> int(2) ["message"]=> string(72) "file_get_contents(bar): failed to open stream: No such file or directory" ["file"]=> string(9) "/in/aJQJC" ["line"]=> int(3) }
Output for hhvm-3.12.0
Warning: No such file or directory in /in/aJQJC on line 3 array(4) { ["type"]=> int(2) ["message"]=> string(25) "No such file or directory" ["file"]=> string(9) "/in/aJQJC" ["line"]=> int(3) }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.1.6
Warning: file_get_contents(bar): failed to open stream: No such file or directory in /in/aJQJC on line 3 Fatal error: Call to undefined function error_get_last() in /in/aJQJC on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Warning: file_get_contents(bar): failed to open stream: No such file or directory in /in/aJQJC on line 3 Fatal error: Call to undefined function: error_get_last() in /in/aJQJC on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Warning: file_get_contents(bar): failed to open stream: No such file or directory in /in/aJQJC on line 3 Fatal error: Call to undefined function: error_get_last() in /in/aJQJC on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: file_get_contents(bar) [http://www.php.net/function.file-get-contents]: failed to create stream: No such file or directory in /in/aJQJC on line 3 Fatal error: Call to undefined function: error_get_last() in /in/aJQJC on line 4