3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d="./etc/rc.conf.pacsave"; echo substr(decoct( fileperms($d)),1); echo readfile($d)?>
Output for 5.0.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: fileperms(): stat failed for ./etc/rc.conf.pacsave in /in/8Y5nN on line 1 Warning: readfile(./etc/rc.conf.pacsave): failed to open stream: No such file or directory in /in/8Y5nN on line 1
Output for hhvm-3.10.0 - 3.12.0
Warning: fileperms(): No such file or directory in /in/8Y5nN on line 1 Warning: No such file or directory in /in/8Y5nN on line 1
Output for 4.3.2 - 4.4.9
Warning: fileperms(): Stat failed for ./etc/rc.conf.pacsave (errno=2 - No such file or directory) in /in/8Y5nN on line 1 Warning: readfile(./etc/rc.conf.pacsave): failed to open stream: No such file or directory in /in/8Y5nN on line 1
Output for 4.3.0 - 4.3.1
Warning: fileperms() [http://www.php.net/function.fileperms]: Stat failed for ./etc/rc.conf.pacsave (errno=2 - No such file or directory) in /in/8Y5nN on line 1 Warning: readfile(./etc/rc.conf.pacsave) [http://www.php.net/function.readfile]: failed to create stream: No such file or directory in /in/8Y5nN on line 1