3v4l.org

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