3v4l.org

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