3v4l.org

run code in 300+ PHP versions simultaneously
<?php $MAP = [ ['x', 'x', 'x', 'x'], ['x', 's', 'p', 'x'], ['x', 'p', 'p', 'x'], ['x', 'p', 'p', 'x'], ['x', 'p', 'p', 'x'], ['x', 'p', 'p', 'x'], ['x', 'x', 'x', 'x'], ]; function whatever_i_cba_naming_shit_at_this_time_of_night($data) { foreach ($data as $parentKey => $parent) { foreach ($parent as $childKey => $child) { yield [$parentKey, $childKey, $child]; } } } foreach (whatever_i_cba_naming_shit_at_this_time_of_night($MAP) as list($parentKey, $childKey, $child)) { echo "$parentKey/$childKey => $child\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
0/0 => x 0/1 => x 0/2 => x 0/3 => x 1/0 => x 1/1 => s 1/2 => p 1/3 => x 2/0 => x 2/1 => p 2/2 => p 2/3 => x 3/0 => x 3/1 => p 3/2 => p 3/3 => x 4/0 => x 4/1 => p 4/2 => p 4/3 => x 5/0 => x 5/1 => p 5/2 => p 5/3 => x 6/0 => x 6/1 => x 6/2 => x 6/3 => x

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:
40.02 ms | 406 KiB | 5 Q