3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = glob('./*'); for ($i = 0; $i < count($items); $i++) { if (is_dir($items[$i])) { $add = glob($items[$i] . '/*'); $items = array_merge($items, $add); } } print_r($items);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => ./etc [1] => ./in [2] => ./tmp [3] => ./etc/arch-release [4] => ./etc/crypttab [5] => ./etc/fstab [6] => ./etc/group [7] => ./etc/gshadow [8] => ./etc/host.conf [9] => ./etc/hosts [10] => ./etc/issue [11] => ./etc/ld.so.conf [12] => ./etc/ld.so.conf.d [13] => ./etc/motd [14] => ./etc/nsswitch.conf [15] => ./etc/pacman.d [16] => ./etc/passwd [17] => ./etc/php.ini [18] => ./etc/php_archive.ini [19] => ./etc/profile [20] => ./etc/profile.d [21] => ./etc/protocols [22] => ./etc/resolv.conf [23] => ./etc/securetty [24] => ./etc/services [25] => ./etc/shadow [26] => ./etc/shells [27] => ./etc/skel [28] => ./in/EuKPe [29] => ./etc/pacman.d/mirrorlist [30] => ./etc/profile.d/locale.sh )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
47.17 ms | 403 KiB | 8 Q