<?php
$array = [
[
"configuration_id" => 10,
"id" => 1,
"optionNumber" => 3,
"optionActive" => 1,
"lastUpdated" => "2010-03-17 15:44:12"
],
[
"configuration_id" => 9,
"id" => 1,
"optionNumber" => 2,
"optionActive" => 1,
"lastUpdated" => "2010-03-17 15:44:12"
],
[
"configuration_id" => 8,
"id" => 1,
"optionNumber" => 1,
"optionActive" => 1,
"lastUpdated" => "2010-03-17 15:44:12"
]
];
array_multisort(
array_column($array, 'optionNumber'),
$array
);
var_export($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/s9auZ
function name: (null)
number of ops: 13
compiled vars: !0 = $array
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
3 0 E > ASSIGN !0, <array>
27 1 INIT_FCALL 'array_multisort'
28 2 INIT_FCALL 'array_column'
3 SEND_VAR !0
4 SEND_VAL 'optionNumber'
5 DO_ICALL $2
6 SEND_VAL $2
29 7 SEND_REF !0
8 DO_ICALL
31 9 INIT_FCALL 'var_export'
10 SEND_VAR !0
11 DO_ICALL
12 > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
145.54 ms | 1398 KiB | 19 Q