3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count = 0; if ($handle = opendir('.')) { while (false !== ($entry = readdir($handle))) { $count++; } closedir($handle); } echo $count;
Output for 4.3.2 - 7.1.0
Warning: opendir(.): failed to open dir: Permission denied in /in/IOPX5 on line 3 0
Output for 4.3.0 - 4.3.1
Warning: opendir(.) [http://www.php.net/function.opendir]: failed to open dir: Permission denied in /in/IOPX5 on line 3 0