3v4l.org

run code in 500+ PHP versions simultaneously
<?php class a { public $key = "as"; } $ar = [new a(), new a()]; var_dump(array_column($ar, 'key'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9FktK
function name:  (null)
number of ops:  15
compiled vars:  !0 = $ar
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   NEW                                                  $1      'a'
          1        DO_FCALL                                          0          
          2        INIT_ARRAY                                           ~3      $1
          3        NEW                                                  $4      'a'
          4        DO_FCALL                                          0          
          5        ADD_ARRAY_ELEMENT                                    ~3      $4
          6        ASSIGN                                                       !0, ~3
    9     7        INIT_FCALL                                                   'var_dump'
          8        INIT_FCALL                                                   'array_column'
          9        SEND_VAR                                                     !0
         10        SEND_VAL                                                     'key'
         11        DO_ICALL                                             $7      
         12        SEND_VAR                                                     $7
         13        DO_ICALL                                                     
         14      > RETURN                                                       1

Class a: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.47 ms | 2094 KiB | 15 Q