3v4l.org

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