3v4l.org

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