3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if ($dh = opendir('/etc/')) { echo "Directory handle: $handle\n"; echo "Entries:\n"; /* This is the correct way to loop over the directory. */ while (false !== ($entry = readdir($dh))) { echo "$entry\n"; } closedir($dh); }
Output for 5.6.28, 7.0.14 - 7.1.0
Notice: Undefined variable: handle in /in/WoLdW on line 4 Directory handle: Entries: . .. 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.35, 7.0.6
Notice: Undefined variable: handle in /in/WoLdW on line 4 Directory handle: Entries: . .. 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 5.5.29 - 5.5.32, 5.5.34, 5.6.13 - 5.6.17, 5.6.20, 7.0.0 - 7.0.3, 7.0.5
Notice: Undefined variable: handle in /in/WoLdW on line 4 Directory handle: Entries: . .. 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.33, 5.6.18 - 5.6.19, 7.0.4
Warning: opendir(/etc/): failed to open dir: Permission denied in /in/WoLdW on line 3
Output for 5.5.25 - 5.5.26, 5.6.8 - 5.6.11, 5.6.21
Notice: Undefined variable: handle in /in/WoLdW on line 4 Directory handle: Entries: . .. 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.27 - 5.5.28, 5.6.12
Notice: Undefined variable: handle in /in/WoLdW on line 4 Directory handle: Entries: . .. 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 4.3.0 - 4.3.1
Warning: opendir(/etc/) [http://www.php.net/function.opendir]: failed to open dir: Permission denied in /in/WoLdW on line 3