3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(glob('/etc/*'));
Output for 7.2.11
array(35) { [0]=> string(17) "/etc/arch-release" [1]=> string(21) "/etc/bash.bash_logout" [2]=> string(16) "/etc/bash.bashrc" [3]=> string(13) "/etc/crypttab" [4]=> string(10) "/etc/fstab" [5]=> string(13) "/etc/gai.conf" [6]=> string(10) "/etc/group" [7]=> string(12) "/etc/gshadow" [8]=> string(9) "/etc/hhvm" [9]=> string(14) "/etc/host.conf" [10]=> string(10) "/etc/hosts" [11]=> string(12) "/etc/inputrc" [12]=> string(10) "/etc/issue" [13]=> string(16) "/etc/ld.so.cache" [14]=> string(15) "/etc/ld.so.conf" [15]=> string(17) "/etc/ld.so.conf.d" [16]=> string(15) "/etc/locale.gen" [17]=> string(15) "/etc/machine-id" [18]=> string(9) "/etc/motd" [19]=> string(14) "/etc/nscd.conf" [20]=> string(18) "/etc/nsswitch.conf" [21]=> string(13) "/etc/pacman.d" [22]=> string(11) "/etc/passwd" [23]=> string(12) "/etc/php.ini" [24]=> string(20) "/etc/php_archive.ini" [25]=> string(12) "/etc/profile" [26]=> string(14) "/etc/profile.d" [27]=> string(14) "/etc/protocols" [28]=> string(16) "/etc/resolv.conf" [29]=> string(8) "/etc/rpc" [30]=> string(14) "/etc/securetty" [31]=> string(13) "/etc/services" [32]=> string(11) "/etc/shadow" [33]=> string(11) "/etc/shells" [34]=> string(9) "/etc/skel" }
Output for 7.1.20, 7.2.6
bool(false)
Output for 7.2.0
array(0) { }
Output for 7.0.20, 7.1.5 - 7.1.10
array(37) { [0]=> string(17) "/etc/arch-release" [1]=> string(21) "/etc/bash.bash_logout" [2]=> string(16) "/etc/bash.bashrc" [3]=> string(13) "/etc/crypttab" [4]=> string(10) "/etc/fstab" [5]=> string(13) "/etc/gai.conf" [6]=> string(10) "/etc/group" [7]=> string(12) "/etc/gshadow" [8]=> string(9) "/etc/hhvm" [9]=> string(14) "/etc/host.conf" [10]=> string(10) "/etc/hosts" [11]=> string(12) "/etc/inputrc" [12]=> string(10) "/etc/issue" [13]=> string(16) "/etc/ld.so.cache" [14]=> string(15) "/etc/ld.so.conf" [15]=> string(17) "/etc/ld.so.conf.d" [16]=> string(15) "/etc/locale.gen" [17]=> string(14) "/etc/localtime" [18]=> string(15) "/etc/machine-id" [19]=> string(9) "/etc/motd" [20]=> string(9) "/etc/mtab" [21]=> string(14) "/etc/nscd.conf" [22]=> string(18) "/etc/nsswitch.conf" [23]=> string(13) "/etc/pacman.d" [24]=> string(11) "/etc/passwd" [25]=> string(12) "/etc/php.ini" [26]=> string(20) "/etc/php_archive.ini" [27]=> string(12) "/etc/profile" [28]=> string(14) "/etc/profile.d" [29]=> string(14) "/etc/protocols" [30]=> string(16) "/etc/resolv.conf" [31]=> string(8) "/etc/rpc" [32]=> string(14) "/etc/securetty" [33]=> string(13) "/etc/services" [34]=> string(11) "/etc/shadow" [35]=> string(11) "/etc/shells" [36]=> string(9) "/etc/skel" }
Output for 4.3.0 - 7.0.14, 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" }