3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = Array ( '0' => Array ( 'value' => 180, 'label' => 'Nokia' ), '1' => Array ( 'value' => 2341, 'label' => 'Suisses' ), '2' => Array ( 'value' => 143, 'label' => 'Nokia' ), '3' => Array ( 'value' => 2389, 'label' => '3D Pop Art' ) ); foreach($options as $v){ $c[$v['label']][] = $v['value']; } print_r($c);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [Nokia] => Array ( [0] => 180 [1] => 143 ) [Suisses] => Array ( [0] => 2341 ) [3D Pop Art] => Array ( [0] => 2389 ) )

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