<?php
$data = array(
array(
"id" => 1,
"name" => "Bruce Wayne",
"city" => "Gotham",
"gender" => "Male"
),
array(
"id" => 2,
"name" => "Diana Prince",
"city" => "Gotham",
"gender" => "Male"
),
array(
"id" => 4,
"name" => "Speedy Gonzales",
"city" => "New Mexico",
"gender" => "Male"
),
array(
"id" => 3,
"name" => "Diana Prince",
"city" => "New Mexico",
"gender" => "Female"
),
array(
"id" => 5,
"name" => "Bruce Wayne",
"city" => "Gotham",
"gender" => "Male"
),
);
array_multisort(array_column($data, "name"), SORT_ASC, $data);
print_r($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/1n8fW
function name: (null)
number of ops: 14
compiled vars: !0 = $data
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
3 0 E > ASSIGN !0, <array>
37 1 INIT_FCALL 'array_multisort'
2 INIT_FCALL 'array_column'
3 SEND_VAR !0
4 SEND_VAL 'name'
5 DO_ICALL $2
6 SEND_VAL $2
7 SEND_VAL 4
8 SEND_REF !0
9 DO_ICALL
39 10 INIT_FCALL 'print_r'
11 SEND_VAR !0
12 DO_ICALL
13 > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
138.18 ms | 1437 KiB | 16 Q