<?php
$array = Array
(
'0' => Array
(
'created_at' => 1991,
'updated_at' => 1992,
'customer_name' => 'john doe',
'line_items' => Array
(
'0' => Array
(
'name' => 'Hello world poduct',
'price' => 800.00,
'id' => 123,
'quantity' => 2
),
'1' => Array
(
'name' => 'Hello world product 2',
'price' => 100.00,
'id' => 456,
'quantity' => 1
)
)
),
'1' => Array
(
'created_at' => 1992,
'updated_at' => 1993,
'customer_name' => 'Guido van Rossum',
'line_items' => Array
(
'0' => Array
(
'name' => 'Hello world product',
'price' => 800.00,
'id' => 123,
'quantity' => 2
),
'1' => Array
(
'name' => 'Hello world poduct 2',
'price' => 100.00,
'id' => 456,
'quantity' => 3
),
'2' => Array
(
'name' => 'Hello world poduct 3',
'price' => 400.00,
'id' => 116,
'quantity' => 5
)
)
)
);
var_export(
array_column(
array_merge(
...array_column($array,'line_items')
),
'quantity'
)
);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/Y65Sf
function name: (null)
number of ops: 17
compiled vars: !0 = $array
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
3 0 E > ASSIGN !0, <array>
62 1 INIT_FCALL 'var_export'
63 2 INIT_FCALL 'array_column'
64 3 INIT_FCALL 'array_merge'
65 4 INIT_FCALL 'array_column'
5 SEND_VAR !0
6 SEND_VAL 'line_items'
7 DO_ICALL $2
8 SEND_UNPACK $2
9 CHECK_UNDEF_ARGS
64 10 DO_ICALL $3
65 11 SEND_VAR $3
67 12 SEND_VAL 'quantity'
63 13 DO_ICALL $4
67 14 SEND_VAR $4
62 15 DO_ICALL
69 16 > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
137.7 ms | 1001 KiB | 16 Q