3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php mkdir('lol'); dir('lol');
Output for 5.3.28 - 5.3.29, 5.4.18 - 5.6.28, 7.0.0 - 7.1.0
Warning: mkdir(): Permission denied in /in/U3Wo7 on line 2 Warning: dir(lol): failed to open dir: No such file or directory in /in/U3Wo7 on line 3
Output for hhvm-3.10.0 - 3.12.0
Warning: mkdir(): Permission denied in /in/U3Wo7 on line 2 Warning: No such file or directory in /in/U3Wo7 on line 3
Output for 5.2.13 - 5.3.27, 5.4.0 - 5.4.17
Warning: mkdir(): Permission denied in /in/hvBbn on line 2 Warning: dir(lol): failed to open dir: No such file or directory in /in/hvBbn on line 3