3v4l.org

run code in 300+ PHP versions simultaneously
<?php $beta_lists = array ( 'Apple' => 'http://www.abc.mno/apple/', 'Ball' => 'http://www.abc.mno/ball/', 'Builders' => 'http://www.abc.mno/builders/', 'Bowling' => 'http://www.abc.mno/bowling/', 'Correct' => 'http://www.abc.mno/correct/', 'Campaign' => 'http://www.abc.mno/compain/', 'Direct' => 'http://www.abc.mno/direct/', 'Degree' => 'http://www.abc.mno/degree/' ); ksort($beta_lists); $groups = array(); foreach ($beta_lists as $title => $value) { $groups[$title[0]][$title] = $value; } print_r($groups); echo count($groups);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [A] => Array ( [Apple] => http://www.abc.mno/apple/ ) [B] => Array ( [Ball] => http://www.abc.mno/ball/ [Bowling] => http://www.abc.mno/bowling/ [Builders] => http://www.abc.mno/builders/ ) [C] => Array ( [Campaign] => http://www.abc.mno/compain/ [Correct] => http://www.abc.mno/correct/ ) [D] => Array ( [Degree] => http://www.abc.mno/degree/ [Direct] => http://www.abc.mno/direct/ ) ) 4

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:
71.83 ms | 402 KiB | 8 Q