3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'price' => [ 'cost' => 200, 'tax' => 10, 'total' => 210 ], 'otherKey' => 'etc' ], [ 'price' => [ 'cost' => 500, 'tax' => 50, 'total' => 550 ], 'otherKey' => 'etc' ], [ 'price' => [ 'cost' => 600, 'tax' => 60, 'total' => 660 ], 'otherKey' => 'etc' ], ]; var_export( array_column( array_column( $array, 'price' ), 'total' ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fGooW
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>
   25     1        INIT_FCALL                                               'var_export'
   26     2        INIT_FCALL                                               'array_column'
   27     3        INIT_FCALL                                               'array_column'
   28     4        SEND_VAR                                                 !0
   29     5        SEND_VAL                                                 'price'
   27     6        DO_ICALL                                         $2      
   29     7        SEND_VAR                                                 $2
   31     8        SEND_VAL                                                 'total'
   26     9        DO_ICALL                                         $3      
   31    10        SEND_VAR                                                 $3
   25    11        DO_ICALL                                                 
   33    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.23 ms | 1010 KiB | 15 Q