3v4l.org

run code in 300+ PHP versions simultaneously
<?php $indexed = [ (object)['id' => 'john', 'name' => 'John', 'age' => 29], (object)['id' => 'peter', 'name' => 'Peter', 'age' => 30], (object)['id' => 'harry', 'name' => 'Harry', 'age' => 19], ]; var_export(array_column($indexed, null, 'id'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PaFcm
function name:  (null)
number of ops:  16
compiled vars:  !0 = $indexed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          8  ~1      <array>
          1        INIT_ARRAY                                       ~2      ~1
    4     2        CAST                                          8  ~3      <array>
          3        ADD_ARRAY_ELEMENT                                ~2      ~3
    5     4        CAST                                          8  ~4      <array>
          5        ADD_ARRAY_ELEMENT                                ~2      ~4
    2     6        ASSIGN                                                   !0, ~2
    8     7        INIT_FCALL                                               'var_export'
          8        INIT_FCALL                                               'array_column'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 null
         11        SEND_VAL                                                 'id'
         12        DO_ICALL                                         $6      
         13        SEND_VAR                                                 $6
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.75 ms | 1405 KiB | 17 Q