3v4l.org

run code in 500+ PHP versions simultaneously
<?php $multiarr = [ ['Fruit' => 'Apples'], ['Fruit' => 'Bananas'], ['Fruit' => 'Oranges'], ['Veg' => 'Carrot'], //['Veg' => 'Leek'], ]; var_export( ['Fruit' => array_column($multiarr, 'Fruit')] );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v7039
function name:  (null)
number of ops:  10
compiled vars:  !0 = $multiarr
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   12     1        INIT_FCALL                                                   'var_export'
   13     2        INIT_FCALL                                                   'array_column'
          3        SEND_VAR                                                     !0
          4        SEND_VAL                                                     'Fruit'
          5        DO_ICALL                                             $2      
          6        INIT_ARRAY                                           ~3      $2, 'Fruit'
          7        SEND_VAL                                                     ~3
   12     8        DO_ICALL                                                     
   14     9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.41 ms | 2099 KiB | 15 Q