3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo dir("."); ?>
Output for 7.1.25 - 7.3.1
Warning: dir(): open_basedir restriction in effect. File(.) is not within the allowed path(s): (/tmp:/in:/etc) in /in/J9uFf on line 2 Warning: dir(.): failed to open dir: Operation not permitted in /in/J9uFf on line 2
Output for 7.1.20
Warning: dir(): open_basedir restriction in effect. File(.) is not within the allowed path(s): (/tmp:/in) in /in/J9uFf on line 2 Warning: dir(.): failed to open dir: Operation not permitted in /in/J9uFf on line 2
Output for 5.4.2 - 5.4.6, 5.5.24 - 7.1.10
Warning: dir(.): failed to open dir: Permission denied in /in/J9uFf on line 2
Output for 5.3.17 - 5.3.29, 5.4.7 - 5.4.45
Catchable fatal error: Object of class Directory could not be converted to string in /in/J9uFf on line 2
Process exited with code 255.