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);

preferences:
23.67 ms | 404 KiB | 5 Q