3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //echo fileperms('sys'); echo call_user_func('chmod', 'sys', 777); /* foreach(glob('sys/*') as $o) { echo "$o".PHP_EOL; }*/
based on bf7JN
Output for 5.4.39 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Warning: chmod(): Read-only file system in /in/R7Bp8 on line 4
Output for 5.2.3 - 5.4.38
Warning: chmod(): Operation not permitted in /in/R7Bp8 on line 4
Output for 4.3.2 - 5.2.2
Warning: chmod(): No such file or directory in /in/R7Bp8 on line 4
Output for 4.3.0 - 4.3.1
Warning: chmod() [http://www.php.net/function.chmod]: No such file or directory in /in/R7Bp8 on line 4