3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp_array_value = array ( '9e5dae29ec5a83d503f2e4d4b5f29f91' => array ( '007Hal007' => array ( 'C0' => 2, 'C1' => 1, 'C2' => 1, ), ), '9317264ea7cc25c6f4f92bbdeb01ec63' => array ( '011210' => array ( 'C0' => 3, 'C1' => 1, 'C2' => 1, 'C3' => 1, ), ), 'c911f95676eb7e5979fda3770bff1a03' => array ( '022218' => array ( 'C0' => 1, 'C1' => 1, 'C2' => 1, 'C3' => 1, ), ) ); uasort($tmp_array_value, function ($a, $b) { return array_values($a)[0]['C0'] - array_values($b)[0]['C0']; }); print_r($tmp_array_value);
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.16, 8.4.1 - 8.4.3
Array ( [c911f95676eb7e5979fda3770bff1a03] => Array ( [022218] => Array ( [C0] => 1 [C1] => 1 [C2] => 1 [C3] => 1 ) ) [9e5dae29ec5a83d503f2e4d4b5f29f91] => Array ( [007Hal007] => Array ( [C0] => 2 [C1] => 1 [C2] => 1 ) ) [9317264ea7cc25c6f4f92bbdeb01ec63] => Array ( [011210] => Array ( [C0] => 3 [C1] => 1 [C2] => 1 [C3] => 1 ) ) )

preferences:
143.01 ms | 409 KiB | 5 Q