3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $f = fopen("/etc/crontab","r"); echo fread($f,filesize("/etc/crontab")); fclose($f);
Output for 5.3.0 - 7.2.0
Warning: fopen(/etc/crontab): failed to open stream: No such file or directory in /in/7nY9q on line 3 Warning: filesize(): stat failed for /etc/crontab in /in/7nY9q on line 4 Warning: fread() expects parameter 1 to be resource, boolean given in /in/7nY9q on line 4 Warning: fclose() expects parameter 1 to be resource, boolean given in /in/7nY9q on line 5
Output for 5.0.0 - 5.2.17
Warning: fopen(/etc/crontab): failed to open stream: No such file or directory in /in/7nY9q on line 3 Warning: filesize(): stat failed for /etc/crontab in /in/7nY9q on line 4 Warning: fread(): supplied argument is not a valid stream resource in /in/7nY9q on line 4 Warning: fclose(): supplied argument is not a valid stream resource in /in/7nY9q on line 5
Output for 4.3.2 - 4.4.9
Warning: fopen(/etc/crontab): failed to open stream: No such file or directory in /in/7nY9q on line 3 Warning: filesize(): Stat failed for /etc/crontab (errno=2 - No such file or directory) in /in/7nY9q on line 4 Warning: fread(): supplied argument is not a valid stream resource in /in/7nY9q on line 4 Warning: fclose(): supplied argument is not a valid stream resource in /in/7nY9q on line 5
Output for 4.3.0 - 4.3.1
Warning: fopen(/etc/crontab) [http://www.php.net/function.fopen]: failed to create stream: No such file or directory in /in/7nY9q on line 3 Warning: filesize() [http://www.php.net/function.filesize]: Stat failed for /etc/crontab (errno=2 - No such file or directory) in /in/7nY9q on line 4 Warning: fread(): supplied argument is not a valid stream resource in /in/7nY9q on line 4 Warning: fclose(): supplied argument is not a valid stream resource in /in/7nY9q on line 5