3v4l.org

run code in 300+ PHP versions simultaneously
<?php $resultCache[129]= [ 'total' => 1000, 'free_from' => "2000", 'addinupshippingcosts' => "0", 'articles' => [ ['shipping_costs_total' => 22], ['shipping_costs_total' => 25], ['shipping_costs_total' => 12], ] ]; $max = array_column($resultCache[129]['articles'], 'shipping_costs_total'); arsort($max); print_r($max); reset($max); $first_key = key($max); echo $first_key; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t472P
function name:  (null)
number of ops:  24
compiled vars:  !0 = $resultCache, !1 = $max, !2 = $first_key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 129
    4     1        OP_DATA                                                  <array>
   14     2        INIT_FCALL                                               'array_column'
          3        FETCH_DIM_R                                      ~4      !0, 129
          4        FETCH_DIM_R                                      ~5      ~4, 'articles'
          5        SEND_VAL                                                 ~5
          6        SEND_VAL                                                 'shipping_costs_total'
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !1, $6
   15     9        INIT_FCALL                                               'arsort'
         10        SEND_REF                                                 !1
         11        DO_ICALL                                                 
   16    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
   17    15        INIT_FCALL                                               'reset'
         16        SEND_REF                                                 !1
         17        DO_ICALL                                                 
   18    18        INIT_FCALL                                               'key'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                         $11     
         21        ASSIGN                                                   !2, $11
   19    22        ECHO                                                     !2
   20    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.61 ms | 1014 KiB | 18 Q