3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arrayA = [ [ 'slug' => 'bob', 'name' => 'Bob', 'age' => '10', ], [ 'slug' => 'alice', 'name' => 'Alice', 'age' => '15', ], [ 'slug' => 'carl', 'name' => 'Carl', 'age' => '17', ] ]; $arrayB = array_column($arrayA, 'name', 'slug'); print_r($arrayB);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LGcES
function name:  (null)
number of ops:  11
compiled vars:  !0 = $arrayA, !1 = $arrayB
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   21     1        INIT_FCALL                                                   'array_column'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     'name'
          4        SEND_VAL                                                     'slug'
          5        DO_ICALL                                             $3      
          6        ASSIGN                                                       !1, $3
   23     7        INIT_FCALL                                                   'print_r'
          8        SEND_VAR                                                     !1
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
153.89 ms | 1862 KiB | 15 Q