<?php
$array = [
['ID' => 1, 'title' => 'Boring Meeting', 'date_start' => '2010-07-30', 'event_type' => 'meeting', 'state' => 'new-york'],
['ID' => 2, 'title' => 'Find My Stapler', 'date_start' => '2010-07-22', 'event_type' => 'meeting', 'state' => 'new-york'],
['ID' => 3, 'title' => 'Mario Party', 'date_start' => '2010-07-22', 'event_type' => 'party', 'state' => 'new-york'],
['ID' => 4, 'title' => 'Duct Tape Party', 'date_start' => '2010-07-28', 'event_type' => 'party', 'state' => 'california']
];
array_multisort(
array_column($array, 'state'),
array_column($array, 'event_type'),
array_column($array, 'date_start'),
$array
);
var_export($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/3DaOq
function name: (null)
number of ops: 23
compiled vars: !0 = $array
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
2 0 E > ASSIGN !0, <array>
9 1 INIT_FCALL 'array_multisort'
10 2 INIT_FCALL 'array_column'
3 SEND_VAR !0
4 SEND_VAL 'state'
5 DO_ICALL $2
6 SEND_VAL $2
11 7 INIT_FCALL 'array_column'
8 SEND_VAR !0
9 SEND_VAL 'event_type'
10 DO_ICALL $3
11 SEND_VAL $3
12 12 INIT_FCALL 'array_column'
13 SEND_VAR !0
14 SEND_VAL 'date_start'
15 DO_ICALL $4
16 SEND_VAL $4
13 17 SEND_REF !0
9 18 DO_ICALL
16 19 INIT_FCALL 'var_export'
20 SEND_VAR !0
21 DO_ICALL
22 > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
141.55 ms | 1438 KiB | 16 Q