3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ 0 => [ 'regulations_label' => 'Europe', 'groups_label' => 'G1', 'filters_label' => 'FF1' ], 1 => [ 'regulations_label' => 'Europe', 'groups_label' => 'G1', 'filters_label' => 'FF900' ], 2 => [ 'regulations_label' => 'Europe', 'groups_label' => 'G1', 'filters_label' => 'FF324234' ], 3 => [ 'regulations_label' => 'Europe', 'groups_label' => 'G2', 'filters_label' => 'FF23942' ], 4 => [ 'regulations_label' => 'America', 'groups_label' => 'G29', 'filters_label' => 'FF3242' ], 5 => [ 'regulations_label' => 'America', 'groups_label' => 'G29', 'filters_label' => 'FF78978' ], 6 => [ 'regulations_label' => 'America', 'groups_label' => 'G29', 'filters_label' => 'FF48395043' ], 7 => [ 'regulations_label' => 'Asia', 'groups_label' => 'G2000', 'filters_label' => 'FF7' ] ]; foreach ($data as $key => $d) { if ($key > 0) { if ($data[$key-1]['regulations_label'] !== $d['regulations_label']) { echo $d['regulations_label'] . "\n"; } if ($data[$key-1]['groups_label'] !== $d['groups_label']) { echo "-" . $d['groups_label'] . "\n"; } } else { echo $d['regulations_label'] . "\n"; echo "-" . $d['groups_label'] . "\n"; } echo ' -- ' . $d['filters_label'] . "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
Europe -G1 -- FF1 -- FF900 -- FF324234 -G2 -- FF23942 America -G29 -- FF3242 -- FF78978 -- FF48395043 Asia -G2000 -- FF7

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:
80.57 ms | 405 KiB | 5 Q