3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 2 => [ 66 => ['id' => 66, 'count' => 9], 255 => ['id' => 255, 'count' => 20], ], 1 => [ 59 => ['id' => 59, 'count' => 14], 255 => ['id' => 255, 'count' => 73], ] ]; array_walk( $array, fn(&$set) => uasort($set, fn($a, $b) => $b['count'] <=> $a['count']) ); var_export($array);
Output for git.master_jit, git.master
array ( 2 => array ( 255 => array ( 'id' => 255, 'count' => 20, ), 66 => array ( 'id' => 66, 'count' => 9, ), ), 1 => array ( 255 => array ( 'id' => 255, 'count' => 73, ), 59 => array ( 'id' => 59, 'count' => 14, ), ), )

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