3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-type: text/plain'); $arr = [ ["thread", 4211], ["thread", 4210], ["thread", 4212], ["thread", 4207], ["thread", 4097], ["thread", 3993], ]; var_dump(array_column($arr, 1)); $arr = [ ['x' => "thread", 'y' => 4211], ['x' => "thread", 'y' => 4210], ['x' => "thread", 'y' => 4212], ['x' => "thread", 'y' => 4207], ['x' => "thread", 'y' => 4097], ['x' => "thread", 'y' => 3993], ]; var_dump(array_column($arr, 'y'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OaNqe
function name:  (null)
number of ops:  20
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-type%3A+text%2Fplain'
          2        DO_ICALL                                                 
    5     3        ASSIGN                                                   !0, <array>
   13     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'array_column'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 1
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                                 
   15    11        ASSIGN                                                   !0, <array>
   24    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'array_column'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 'y'
         16        DO_ICALL                                         $6      
         17        SEND_VAR                                                 $6
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.01 ms | 999 KiB | 16 Q