3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo dir("."); ?>
Output for 5.4.2 - 5.4.6, 5.5.24 - 7.2.0
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.