3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ [ ['name' => 'john', 'age' => 10,], ['name' => 'mary', 'age' => 15,], ], [ ['name' => 'mark', 'age' => 12,], ['name' => 'susan', 'age' => 8,], ] ]; var_export( array_column( array_merge(...$array), 'age' ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CGeQ7
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   14     1        INIT_FCALL                                                   'var_export'
   15     2        INIT_FCALL                                                   'array_column'
   16     3        INIT_FCALL                                                   'array_merge'
          4        SEND_UNPACK                                                  !0
          5        CHECK_UNDEF_ARGS                                             
          6        DO_ICALL                                             $2      
          7        SEND_VAR                                                     $2
   17     8        SEND_VAL                                                     'age'
   15     9        DO_ICALL                                             $3      
   17    10        SEND_VAR                                                     $3
   14    11        DO_ICALL                                                     
   19    12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
200.21 ms | 1860 KiB | 16 Q