3v4l.org

run code in 300+ PHP versions simultaneously
<?php $zm = [ 6000 => [ 0 => [ 'wskaznik' => 100 ], 1 => [ 'wskaznik' => 100 ] ], 8000 => [ 0 => [ 'wskaznik' => 50 ], 1 => [ 'wskaznik' => 50 ] ], 4000 => [ 0 => [ 'wskaznik' => 200 ], 1 => [ 'wskaznik' => 200 ] ], ]; $counts = array(); $keys = array_keys($zm); foreach ($zm as $key => $value){ $counts[] = $value[0]['wskaznik']; } $counts_copy = $counts; array_multisort($counts, $zm); array_multisort($counts_copy, $keys); $out = array_combine($keys, $zm); echo "<pre>"; print_r($out); echo "</pre>"; exit;
Output for git.master, git.master_jit, rfc.property-hooks
<pre>Array ( [8000] => Array ( [0] => Array ( [wskaznik] => 50 ) [1] => Array ( [wskaznik] => 50 ) ) [6000] => Array ( [0] => Array ( [wskaznik] => 100 ) [1] => Array ( [wskaznik] => 100 ) ) [4000] => Array ( [0] => Array ( [wskaznik] => 200 ) [1] => Array ( [wskaznik] => 200 ) ) ) </pre>

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:
29.46 ms | 407 KiB | 5 Q