3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if ($handle = opendir('/etc/')) { while (false !== ($entry = readdir($handle))) { if ($entry != "." && $entry != "..") { echo "$entry\n"; } } closedir($handle); } ?>
Output for 5.6.28, 7.0.14 - 7.1.0
ImageMagick-6 ODBCDataSources ca-certificates default fonts hhvm ld.so.conf.d openldap pacman.d pam.d pkcs11 profile.d request-key.d security skel ssl arch-release crypttab fstab group gshadow host.conf hosts issue ld.so.conf motd netconfig nsswitch.conf passwd profile request-key.conf resolv.conf securetty shadow shells rpc nscd.conf gai.conf locale.gen mke2fs.conf krb5.conf environment machine-id php_archive.ini php.ini mtab localtime bash.bash_logout bash.bashrc inputrc ld.so.cache login.defs odbc.ini odbcinst.ini protocols services
Output for 5.5.24 - 5.5.26, 5.6.8 - 5.6.10, 5.6.21, 7.0.6
mtab ImageMagick-6 ODBCDataSources ca-certificates default fonts hhvm ld.so.conf.d openldap pacman.d pam.d pkcs11 profile.d request-key.d security skel ssl inputrc krb5.conf login.defs odbc.ini odbcinst.ini request-key.conf mke2fs.conf arch-release crypttab fstab group gshadow host.conf hosts issue motd nsswitch.conf passwd profile resolv.conf securetty shadow shells netconfig bash.bash_logout bash.bashrc environment gai.conf ld.so.conf locale.gen nscd.conf rpc php.ini php_archive.ini protocols services ld.so.cache localtime
Output for 5.5.29 - 5.5.31, 5.5.34, 5.6.13 - 5.6.17, 5.6.20, hhvm-3.10.0, 7.0.0 - 7.0.3, 7.0.5
mtab ImageMagick-6 ODBCDataSources ca-certificates default fonts hhvm ld.so.conf.d openldap pacman.d pam.d pkcs11 profile.d request-key.d security skel ssl inputrc krb5.conf login.defs odbc.ini odbcinst.ini php.ini request-key.conf mke2fs.conf arch-release crypttab fstab group gshadow host.conf hosts issue motd nsswitch.conf passwd profile resolv.conf securetty shadow shells protocols services netconfig bash.bash_logout bash.bashrc environment gai.conf ld.so.cache ld.so.conf locale.gen nscd.conf rpc localtime
Output for 4.3.2 - 5.4.45, 5.5.32 - 5.5.33, 5.6.18 - 5.6.19, 7.0.4
Warning: opendir(/etc/): failed to open dir: Permission denied in /in/8C3WH on line 2
Output for hhvm-3.12.0
Warning: Permission denied in /in/8C3WH on line 2
Output for 5.5.27 - 5.5.28, 5.6.11 - 5.6.12
mtab ImageMagick-6 ODBCDataSources ca-certificates default fonts hhvm ld.so.conf.d openldap pacman.d pam.d pkcs11 profile.d request-key.d security skel ssl inputrc krb5.conf login.defs odbc.ini odbcinst.ini request-key.conf mke2fs.conf arch-release crypttab fstab group gshadow host.conf hosts issue motd nsswitch.conf passwd profile resolv.conf securetty shadow shells netconfig bash.bash_logout bash.bashrc environment gai.conf ld.so.conf locale.gen nscd.conf rpc ld.so.cache php.ini php_archive.ini protocols services localtime
Output for 5.5.35 - 5.6.7
mtab ImageMagick-6 ODBCDataSources ca-certificates default fonts hhvm ld.so.conf.d openldap pacman.d pam.d pkcs11 profile.d request-key.d security skel ssl arch-release bash.bash_logout bash.bashrc crypttab environment fstab gai.conf group gshadow host.conf hosts inputrc issue krb5.conf ld.so.cache ld.so.conf locale.gen login.defs mke2fs.conf motd netconfig nscd.conf nsswitch.conf odbc.ini odbcinst.ini passwd php.ini php_archive.ini profile protocols request-key.conf resolv.conf rpc securetty services shadow shells localtime
Output for 4.3.0 - 4.3.1
Warning: opendir(/etc/) [http://www.php.net/function.opendir]: failed to open dir: Permission denied in /in/8C3WH on line 2