3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php mkdir("/in/dire", 0700); exit; chmod("/in", 0777); ?>
Output for 5.6.28, 7.0.14 - 7.1.0
Warning: mkdir(): Permission denied in /in/KkDYk on line 2
Output for 5.0.0 - 5.6.21, 7.0.0 - 7.0.6
Warning: mkdir(): Read-only file system in /in/KkDYk on line 2
Output for 4.3.2 - 4.4.9
Warning: mkdir(/in/dire): Read-only file system in /in/KkDYk on line 2
Output for 4.3.0 - 4.3.1
Warning: mkdir(/in/dire) [http://www.php.net/function.mkdir]: Read-only file system in /in/KkDYk on line 2