3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach(new GlobIterator('/etc/*', FilesystemIterator::SKIP_DOTS) as $file) { echo $file.PHP_EOL; //var_dump(get_class_methods($file->openFile())); }
Output for 5.6.28, 7.0.14 - 7.1.0
/etc/ImageMagick-6 /etc/ODBCDataSources /etc/arch-release /etc/bash.bash_logout /etc/bash.bashrc /etc/ca-certificates /etc/crypttab /etc/default /etc/environment /etc/fonts /etc/fstab /etc/gai.conf /etc/group /etc/gshadow /etc/hhvm /etc/host.conf /etc/hosts /etc/inputrc /etc/issue /etc/krb5.conf /etc/ld.so.cache /etc/ld.so.conf /etc/ld.so.conf.d /etc/locale.gen /etc/localtime /etc/login.defs /etc/machine-id /etc/mke2fs.conf /etc/motd /etc/mtab /etc/netconfig /etc/nscd.conf /etc/nsswitch.conf /etc/odbc.ini /etc/odbcinst.ini /etc/openldap /etc/pacman.d /etc/pam.d /etc/passwd /etc/php.ini /etc/php_archive.ini /etc/pkcs11 /etc/profile /etc/profile.d /etc/protocols /etc/request-key.conf /etc/request-key.d /etc/resolv.conf /etc/rpc /etc/securetty /etc/security /etc/services /etc/shadow /etc/shells /etc/skel /etc/ssl
Output for 5.5.24 - 5.5.28, 5.5.35 - 5.6.12, 5.6.21, 7.0.6
/etc/ImageMagick-6 /etc/ODBCDataSources /etc/arch-release /etc/bash.bash_logout /etc/bash.bashrc /etc/ca-certificates /etc/crypttab /etc/default /etc/environment /etc/fonts /etc/fstab /etc/gai.conf /etc/group /etc/gshadow /etc/hhvm /etc/host.conf /etc/hosts /etc/inputrc /etc/issue /etc/krb5.conf /etc/ld.so.cache /etc/ld.so.conf /etc/ld.so.conf.d /etc/locale.gen /etc/localtime /etc/login.defs /etc/mke2fs.conf /etc/motd /etc/mtab /etc/netconfig /etc/nscd.conf /etc/nsswitch.conf /etc/odbc.ini /etc/odbcinst.ini /etc/openldap /etc/pacman.d /etc/pam.d /etc/passwd /etc/php.ini /etc/php_archive.ini /etc/pkcs11 /etc/profile /etc/profile.d /etc/protocols /etc/request-key.conf /etc/request-key.d /etc/resolv.conf /etc/rpc /etc/securetty /etc/security /etc/services /etc/shadow /etc/shells /etc/skel /etc/ssl
Output for 5.5.29 - 5.5.32, 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
/etc/ImageMagick-6 /etc/ODBCDataSources /etc/arch-release /etc/bash.bash_logout /etc/bash.bashrc /etc/ca-certificates /etc/crypttab /etc/default /etc/environment /etc/fonts /etc/fstab /etc/gai.conf /etc/group /etc/gshadow /etc/hhvm /etc/host.conf /etc/hosts /etc/inputrc /etc/issue /etc/krb5.conf /etc/ld.so.cache /etc/ld.so.conf /etc/ld.so.conf.d /etc/locale.gen /etc/localtime /etc/login.defs /etc/mke2fs.conf /etc/motd /etc/mtab /etc/netconfig /etc/nscd.conf /etc/nsswitch.conf /etc/odbc.ini /etc/odbcinst.ini /etc/openldap /etc/pacman.d /etc/pam.d /etc/passwd /etc/php.ini /etc/pkcs11 /etc/profile /etc/profile.d /etc/protocols /etc/request-key.conf /etc/request-key.d /etc/resolv.conf /etc/rpc /etc/securetty /etc/security /etc/services /etc/shadow /etc/shells /etc/skel /etc/ssl
Output for 5.3.0 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19, hhvm-3.12.0, 7.0.4
Output for 5.0.0 - 5.2.17
Fatal error: Class 'GlobIterator' not found in /in/OJLZi on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected ')', expecting '(' in /in/OJLZi on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected ')', expecting '(' in /in/OJLZi on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `'('' in /in/OJLZi on line 2
Process exited with code 255.