3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['id' => 1, 'key' => 'foo', 'data' => 'a'], ['id' => 2, 'key' => 'bar', 'data' => 'b'], ['id' => 3, 'key' => 'barf', 'data' => 'c'], ]; var_export( array_column($array, 'data', 'id') );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fZrQT
function name:  (null)
number of ops:  10
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'var_export'
   10     2        INIT_FCALL                                               'array_column'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'data'
          5        SEND_VAL                                                 'id'
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
    9     8        DO_ICALL                                                 
   11     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.68 ms | 997 KiB | 15 Q