3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d="./var/log/pacman.log"; echo substr(decoct( fileperms($d)),1); print_r(scandir($d)); echo readfile($d)?>
Output for 7.0.20 - 7.1.10
Warning: fileperms(): stat failed for ./var/log/pacman.log in /in/pCRKO on line 1 Warning: scandir(./var/log/pacman.log): failed to open dir: Permission denied in /in/pCRKO on line 1 Warning: scandir(): (errno 13): Permission denied in /in/pCRKO on line 1 Warning: readfile(./var/log/pacman.log): failed to open stream: Permission denied in /in/pCRKO on line 1