3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if ($handle = opendir('./in')) { while (false !== ($entry = readdir($handle))) { if ($entry != "." && $entry != "..") { echo "$entry\n"; } } closedir($handle); } ?>
Output for 5.2.3 - 7.2.0
Warning: opendir(./in): failed to open dir: Permission denied in /in/sBW79 on line 2
Output for 4.3.2 - 5.2.2
Warning: opendir(./in): failed to open dir: No such file or directory in /in/sBW79 on line 2
Output for 4.3.0 - 4.3.1
Warning: opendir(./in) [http://www.php.net/function.opendir]: failed to open dir: No such file or directory in /in/sBW79 on line 2