3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array ( "L1_ID" => 21, "L1_ATTR_DESC" => "Project Overview", "L2_ATTR_DESC" => "Project Status", "L3_ATTR_DESC" => "Ready" ), array ( "L1_ID" => 21, "L1_ATTR_DESC" => "Project Overview", "L2_ATTR_DESC" => "Project Status", "L3_ATTR_DESC" => "Pending" ), array ( "L1_ID" => 21, "L1_ATTR_DESC" => "Project Overview", "L2_ATTR_DESC" => "Project Status", "L3_ATTR_DESC" => "Completed" ), array ( "L1_ID" => 21, "L1_ATTR_DESC" => "Project Overview", "L2_ATTR_DESC" => "Project Quality", "L3_ATTR_DESC" => "Independ" ), array ( "L1_ID" => 21, "L1_ATTR_DESC" => "Project Overview", "L2_ATTR_DESC" => "Project Quality", "L3_ATTR_DESC" => "G+1" ) ); $ps = array(); foreach($arr as $value){ $index = str_replace(" ", "", strtolower($value['L2_ATTR_DESC'])); $ps[$index][] = $value['L3_ATTR_DESC']; } echo '<pre>'; print_r($ps);
Output for git.master, git.master_jit, rfc.property-hooks
<pre>Array ( [projectstatus] => Array ( [0] => Ready [1] => Pending [2] => Completed ) [projectquality] => Array ( [0] => Independ [1] => G+1 ) )

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:
31.65 ms | 405 KiB | 9 Q