3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(glob('../../../../../../etc/*'));
Output for 7.4.26 - 7.4.32, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
array(25) { [0]=> string(34) "../../../../../../etc/arch-release" [1]=> string(30) "../../../../../../etc/crypttab" [2]=> string(27) "../../../../../../etc/fstab" [3]=> string(27) "../../../../../../etc/group" [4]=> string(29) "../../../../../../etc/gshadow" [5]=> string(31) "../../../../../../etc/host.conf" [6]=> string(27) "../../../../../../etc/hosts" [7]=> string(27) "../../../../../../etc/issue" [8]=> string(32) "../../../../../../etc/ld.so.conf" [9]=> string(34) "../../../../../../etc/ld.so.conf.d" [10]=> string(26) "../../../../../../etc/motd" [11]=> string(35) "../../../../../../etc/nsswitch.conf" [12]=> string(30) "../../../../../../etc/pacman.d" [13]=> string(28) "../../../../../../etc/passwd" [14]=> string(29) "../../../../../../etc/php.ini" [15]=> string(37) "../../../../../../etc/php_archive.ini" [16]=> string(29) "../../../../../../etc/profile" [17]=> string(31) "../../../../../../etc/profile.d" [18]=> string(31) "../../../../../../etc/protocols" [19]=> string(33) "../../../../../../etc/resolv.conf" [20]=> string(31) "../../../../../../etc/securetty" [21]=> string(30) "../../../../../../etc/services" [22]=> string(28) "../../../../../../etc/shadow" [23]=> string(28) "../../../../../../etc/shells" [24]=> string(26) "../../../../../../etc/skel" }
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 array(25) { [0]=> string(34) "../../../../../../etc/arch-release" [1]=> string(30) "../../../../../../etc/crypttab" [2]=> string(27) "../../../../../../etc/fstab" [3]=> string(27) "../../../../../../etc/group" [4]=> string(29) "../../../../../../etc/gshadow" [5]=> string(31) "../../../../../../etc/host.conf" [6]=> string(27) "../../../../../../etc/hosts" [7]=> string(27) "../../../../../../etc/issue" [8]=> string(32) "../../../../../../etc/ld.so.conf" [9]=> string(34) "../../../../../../etc/ld.so.conf.d" [10]=> string(26) "../../../../../../etc/motd" [11]=> string(35) "../../../../../../etc/nsswitch.conf" [12]=> string(30) "../../../../../../etc/pacman.d" [13]=> string(28) "../../../../../../etc/passwd" [14]=> string(29) "../../../../../../etc/php.ini" [15]=> string(37) "../../../../../../etc/php_archive.ini" [16]=> string(29) "../../../../../../etc/profile" [17]=> string(31) "../../../../../../etc/profile.d" [18]=> string(31) "../../../../../../etc/protocols" [19]=> string(33) "../../../../../../etc/resolv.conf" [20]=> string(31) "../../../../../../etc/securetty" [21]=> string(30) "../../../../../../etc/services" [22]=> string(28) "../../../../../../etc/shadow" [23]=> string(28) "../../../../../../etc/shells" [24]=> string(26) "../../../../../../etc/skel" }
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.25, 8.0.0 - 8.0.13
array(24) { [0]=> string(34) "../../../../../../etc/arch-release" [1]=> string(30) "../../../../../../etc/crypttab" [2]=> string(27) "../../../../../../etc/fstab" [3]=> string(27) "../../../../../../etc/group" [4]=> string(29) "../../../../../../etc/gshadow" [5]=> string(31) "../../../../../../etc/host.conf" [6]=> string(27) "../../../../../../etc/hosts" [7]=> string(27) "../../../../../../etc/issue" [8]=> string(32) "../../../../../../etc/ld.so.conf" [9]=> string(34) "../../../../../../etc/ld.so.conf.d" [10]=> string(26) "../../../../../../etc/motd" [11]=> string(26) "../../../../../../etc/mtab" [12]=> string(35) "../../../../../../etc/nsswitch.conf" [13]=> string(30) "../../../../../../etc/pacman.d" [14]=> string(28) "../../../../../../etc/passwd" [15]=> string(29) "../../../../../../etc/profile" [16]=> string(31) "../../../../../../etc/profile.d" [17]=> string(31) "../../../../../../etc/protocols" [18]=> string(33) "../../../../../../etc/resolv.conf" [19]=> string(31) "../../../../../../etc/securetty" [20]=> string(30) "../../../../../../etc/services" [21]=> string(28) "../../../../../../etc/shadow" [22]=> string(28) "../../../../../../etc/shells" [23]=> string(26) "../../../../../../etc/skel" }
Output for 7.4.33
array(26) { [0]=> string(34) "../../../../../../etc/arch-release" [1]=> string(30) "../../../../../../etc/crypttab" [2]=> string(27) "../../../../../../etc/fstab" [3]=> string(27) "../../../../../../etc/group" [4]=> string(29) "../../../../../../etc/gshadow" [5]=> string(31) "../../../../../../etc/host.conf" [6]=> string(27) "../../../../../../etc/hosts" [7]=> string(27) "../../../../../../etc/issue" [8]=> string(32) "../../../../../../etc/ld.so.conf" [9]=> string(34) "../../../../../../etc/ld.so.conf.d" [10]=> string(26) "../../../../../../etc/motd" [11]=> string(26) "../../../../../../etc/mtab" [12]=> string(35) "../../../../../../etc/nsswitch.conf" [13]=> string(30) "../../../../../../etc/pacman.d" [14]=> string(28) "../../../../../../etc/passwd" [15]=> string(29) "../../../../../../etc/php.ini" [16]=> string(37) "../../../../../../etc/php_archive.ini" [17]=> string(29) "../../../../../../etc/profile" [18]=> string(31) "../../../../../../etc/profile.d" [19]=> string(31) "../../../../../../etc/protocols" [20]=> string(33) "../../../../../../etc/resolv.conf" [21]=> string(31) "../../../../../../etc/securetty" [22]=> string(30) "../../../../../../etc/services" [23]=> string(28) "../../../../../../etc/shadow" [24]=> string(28) "../../../../../../etc/shells" [25]=> string(26) "../../../../../../etc/skel" }

preferences:
270.68 ms | 404 KiB | 339 Q