3v4l.org

run code in 300+ PHP versions simultaneously
<?php $methods[0]['label'] = 'test'; $methods[0]['nr'] = 99; $methods[1]['label'] = 'whatever'; $methods[1]['nr'] = 10; $methodsLabel = array_column($methods, 'label'); var_dump($methodsLabel);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZabAb
function name:  (null)
number of ops:  21
compiled vars:  !0 = $methods, !1 = $methodsLabel
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_DIM_W                                      $2      !0, 0
          1        ASSIGN_DIM                                               $2, 'label'
          2        OP_DATA                                                  'test'
    4     3        FETCH_DIM_W                                      $4      !0, 0
          4        ASSIGN_DIM                                               $4, 'nr'
          5        OP_DATA                                                  99
    5     6        FETCH_DIM_W                                      $6      !0, 1
          7        ASSIGN_DIM                                               $6, 'label'
          8        OP_DATA                                                  'whatever'
    6     9        FETCH_DIM_W                                      $8      !0, 1
         10        ASSIGN_DIM                                               $8, 'nr'
         11        OP_DATA                                                  10
    8    12        INIT_FCALL                                               'array_column'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 'label'
         15        DO_ICALL                                         $10     
         16        ASSIGN                                                   !1, $10
   10    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.19 ms | 1399 KiB | 17 Q