3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo fread(fopen("/tmp/asdf", "r"), 1024); ?>
Output for 5.3.0 - 7.1.0
Warning: fopen(/tmp/asdf): failed to open stream: No such file or directory in /in/NtBTB on line 2 Warning: fread() expects parameter 1 to be resource, boolean given in /in/NtBTB on line 2
Output for 4.3.2 - 5.2.17
Warning: fopen(/tmp/asdf): failed to open stream: No such file or directory in /in/NtBTB on line 2 Warning: fread(): supplied argument is not a valid stream resource in /in/NtBTB on line 2
Output for 4.3.0 - 4.3.1
Warning: fopen(/tmp/asdf) [http://www.php.net/function.fopen]: failed to create stream: No such file or directory in /in/NtBTB on line 2 Warning: fread(): supplied argument is not a valid stream resource in /in/NtBTB on line 2