3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(glob('/etc/*'));
Output for 5.6.28, 7.0.14 - 7.1.0
Array ( [0] => /etc/ImageMagick-6 [1] => /etc/ODBCDataSources [2] => /etc/arch-release [3] => /etc/bash.bash_logout [4] => /etc/bash.bashrc [5] => /etc/ca-certificates [6] => /etc/crypttab [7] => /etc/default [8] => /etc/environment [9] => /etc/fonts [10] => /etc/fstab [11] => /etc/gai.conf [12] => /etc/group [13] => /etc/gshadow [14] => /etc/hhvm [15] => /etc/host.conf [16] => /etc/hosts [17] => /etc/inputrc [18] => /etc/issue [19] => /etc/krb5.conf [20] => /etc/ld.so.cache [21] => /etc/ld.so.conf [22] => /etc/ld.so.conf.d [23] => /etc/locale.gen [24] => /etc/localtime [25] => /etc/login.defs [26] => /etc/machine-id [27] => /etc/mke2fs.conf [28] => /etc/motd [29] => /etc/mtab [30] => /etc/netconfig [31] => /etc/nscd.conf [32] => /etc/nsswitch.conf [33] => /etc/odbc.ini [34] => /etc/odbcinst.ini [35] => /etc/openldap [36] => /etc/pacman.d [37] => /etc/pam.d [38] => /etc/passwd [39] => /etc/php.ini [40] => /etc/php_archive.ini [41] => /etc/pkcs11 [42] => /etc/profile [43] => /etc/profile.d [44] => /etc/protocols [45] => /etc/request-key.conf [46] => /etc/request-key.d [47] => /etc/resolv.conf [48] => /etc/rpc [49] => /etc/securetty [50] => /etc/security [51] => /etc/services [52] => /etc/shadow [53] => /etc/shells [54] => /etc/skel [55] => /etc/ssl )
Output for 5.5.24 - 5.5.28, 5.5.35 - 5.6.12, 5.6.21, 7.0.6
Array ( [0] => /etc/ImageMagick-6 [1] => /etc/ODBCDataSources [2] => /etc/arch-release [3] => /etc/bash.bash_logout [4] => /etc/bash.bashrc [5] => /etc/ca-certificates [6] => /etc/crypttab [7] => /etc/default [8] => /etc/environment [9] => /etc/fonts [10] => /etc/fstab [11] => /etc/gai.conf [12] => /etc/group [13] => /etc/gshadow [14] => /etc/hhvm [15] => /etc/host.conf [16] => /etc/hosts [17] => /etc/inputrc [18] => /etc/issue [19] => /etc/krb5.conf [20] => /etc/ld.so.cache [21] => /etc/ld.so.conf [22] => /etc/ld.so.conf.d [23] => /etc/locale.gen [24] => /etc/localtime [25] => /etc/login.defs [26] => /etc/mke2fs.conf [27] => /etc/motd [28] => /etc/mtab [29] => /etc/netconfig [30] => /etc/nscd.conf [31] => /etc/nsswitch.conf [32] => /etc/odbc.ini [33] => /etc/odbcinst.ini [34] => /etc/openldap [35] => /etc/pacman.d [36] => /etc/pam.d [37] => /etc/passwd [38] => /etc/php.ini [39] => /etc/php_archive.ini [40] => /etc/pkcs11 [41] => /etc/profile [42] => /etc/profile.d [43] => /etc/protocols [44] => /etc/request-key.conf [45] => /etc/request-key.d [46] => /etc/resolv.conf [47] => /etc/rpc [48] => /etc/securetty [49] => /etc/security [50] => /etc/services [51] => /etc/shadow [52] => /etc/shells [53] => /etc/skel [54] => /etc/ssl )
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
Array ( [0] => /etc/ImageMagick-6 [1] => /etc/ODBCDataSources [2] => /etc/arch-release [3] => /etc/bash.bash_logout [4] => /etc/bash.bashrc [5] => /etc/ca-certificates [6] => /etc/crypttab [7] => /etc/default [8] => /etc/environment [9] => /etc/fonts [10] => /etc/fstab [11] => /etc/gai.conf [12] => /etc/group [13] => /etc/gshadow [14] => /etc/hhvm [15] => /etc/host.conf [16] => /etc/hosts [17] => /etc/inputrc [18] => /etc/issue [19] => /etc/krb5.conf [20] => /etc/ld.so.cache [21] => /etc/ld.so.conf [22] => /etc/ld.so.conf.d [23] => /etc/locale.gen [24] => /etc/localtime [25] => /etc/login.defs [26] => /etc/mke2fs.conf [27] => /etc/motd [28] => /etc/mtab [29] => /etc/netconfig [30] => /etc/nscd.conf [31] => /etc/nsswitch.conf [32] => /etc/odbc.ini [33] => /etc/odbcinst.ini [34] => /etc/openldap [35] => /etc/pacman.d [36] => /etc/pam.d [37] => /etc/passwd [38] => /etc/php.ini [39] => /etc/pkcs11 [40] => /etc/profile [41] => /etc/profile.d [42] => /etc/protocols [43] => /etc/request-key.conf [44] => /etc/request-key.d [45] => /etc/resolv.conf [46] => /etc/rpc [47] => /etc/securetty [48] => /etc/security [49] => /etc/services [50] => /etc/shadow [51] => /etc/shells [52] => /etc/skel [53] => /etc/ssl )
Output for 4.3.0 - 4.3.6, 4.3.9 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19, 7.0.4
Array ( )
Output for 4.3.7 - 4.3.8