3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = []; $foo[] = ['id' => 11, 'abc' => 'def', 'ghi' => 'jkl']; $foo[] = ['id' => 22, 'def' => 'abc', 'jkl' => 'ghi']; var_dump(array_column($foo, NULL, 'id'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RqoGL
function name:  (null)
number of ops:  14
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0
          2        OP_DATA                                                  <array>
    5     3        ASSIGN_DIM                                               !0
          4        OP_DATA                                                  <array>
    7     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'array_column'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 null
          9        SEND_VAL                                                 'id'
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.25 ms | 1005 KiB | 15 Q