3v4l.org

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