3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d = opendir(getcwd().'/usr'); while (false !== ($entry = readdir($d))) { echo "$entry\n"; }
Output for 5.2.3 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.0.13, 7.1.0
. .. include share lib bin src local lib64 sbin
Output for 7.0.14
. .. bin include lib local share src lib64 sbin
Output for 4.3.2 - 5.2.2
Warning: opendir(/in/usr): failed to open dir: No such file or directory in /in/S5ndn on line 2 Warning: readdir(): supplied argument is not a valid Directory resource in /in/S5ndn on line 3
Output for 4.3.0 - 4.3.1
Warning: opendir(/in/usr) [http://www.php.net/function.opendir]: failed to open dir: No such file or directory in /in/S5ndn on line 2 Warning: readdir(): supplied argument is not a valid Directory resource in /in/S5ndn on line 3