3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currencies = [ '840' => [ name => 'USD', demonimator => 100, ], '392' => [ name => 'JPY', demonimator => 1, ], ]; var_dump( array_column($currencies, name) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JJ5hI
function name:  (null)
number of ops:  20
compiled vars:  !0 = $currencies
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FETCH_CONSTANT                                   ~1      'name'
          1        INIT_ARRAY                                       ~2      'USD', ~1
    5     2        FETCH_CONSTANT                                   ~3      'demonimator'
          3        ADD_ARRAY_ELEMENT                                ~2      100, ~3
          4        INIT_ARRAY                                       ~4      ~2, 840
    8     5        FETCH_CONSTANT                                   ~5      'name'
          6        INIT_ARRAY                                       ~6      'JPY', ~5
    9     7        FETCH_CONSTANT                                   ~7      'demonimator'
          8        ADD_ARRAY_ELEMENT                                ~6      1, ~7
          9        ADD_ARRAY_ELEMENT                                ~4      ~6, 392
    2    10        ASSIGN                                                   !0, ~4
   13    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'array_column'
         13        SEND_VAR                                                 !0
         14        FETCH_CONSTANT                                   ~9      'name'
         15        SEND_VAL                                                 ~9
         16        DO_ICALL                                         $10     
         17        SEND_VAR                                                 $10
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.39 ms | 1395 KiB | 17 Q