3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = Array ( '1' => Array ( '1' => 48.083261120685 ), '2' => Array ( '3' => 40.509258201058 ), '3' => Array ( '2' => 38.262252939418 ), '4' => Array ( '3' => 42.296571965113 ), '5' => Array ( '3' => 4.5825756949558 ), '6' => Array ( '3' => 186.7110066386 ), '7' => Array ( '3' => 149.29835899969 ), '8' => Array ( '2' => 47.053161424074 ), '9' => Array ( '2' => 15.58845726812 ), '10' => Array ( '2' => 6.164414002969 ), '11' => Array ( '1' => 4.5825756949558 ), '12' => Array ( '2' => 42.0119030752 ), '13' => Array ( '1' => 52.886671288709 ), '14' => Array ( '1' => 65.222695436481 ) ); $r= []; foreach($a as $k => $v){ foreach($v as $k1 => $v1){ $r[$k1][$k] = $v1; } } echo '<pre>'; print_r($r);
Output for git.master, git.master_jit, rfc.property-hooks
<pre>Array ( [1] => Array ( [1] => 48.083261120685 [11] => 4.5825756949558 [13] => 52.886671288709 [14] => 65.222695436481 ) [3] => Array ( [2] => 40.509258201058 [4] => 42.296571965113 [5] => 4.5825756949558 [6] => 186.7110066386 [7] => 149.29835899969 ) [2] => Array ( [3] => 38.262252939418 [8] => 47.053161424074 [9] => 15.58845726812 [10] => 6.164414002969 [12] => 42.0119030752 ) )

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