3v4l.org

run code in 300+ PHP versions simultaneously
<?php chdir('/etc/'); print_r(glob('*'));
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.6
Array ( [0] => arch-release [1] => crypttab [2] => fstab [3] => group [4] => gshadow [5] => host.conf [6] => hosts [7] => issue [8] => ld.so.conf [9] => ld.so.conf.d [10] => motd [11] => nsswitch.conf [12] => pacman.d [13] => passwd [14] => php.ini [15] => php_archive.ini [16] => profile [17] => profile.d [18] => protocols [19] => resolv.conf [20] => securetty [21] => services [22] => shadow [23] => shells [24] => skel )
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 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 ( [0] => arch-release [1] => crypttab [2] => fstab [3] => group [4] => gshadow [5] => host.conf [6] => hosts [7] => issue [8] => ld.so.conf [9] => ld.so.conf.d [10] => motd [11] => mtab [12] => nsswitch.conf [13] => pacman.d [14] => passwd [15] => profile [16] => profile.d [17] => protocols [18] => resolv.conf [19] => securetty [20] => services [21] => shadow [22] => shells [23] => skel )
Output for 7.4.33
Array ( [0] => arch-release [1] => crypttab [2] => fstab [3] => group [4] => gshadow [5] => host.conf [6] => hosts [7] => issue [8] => ld.so.conf [9] => ld.so.conf.d [10] => motd [11] => mtab [12] => nsswitch.conf [13] => pacman.d [14] => passwd [15] => php.ini [16] => php_archive.ini [17] => profile [18] => profile.d [19] => protocols [20] => resolv.conf [21] => securetty [22] => services [23] => shadow [24] => shells [25] => skel )

preferences:
325.63 ms | 402 KiB | 468 Q