3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ ['name' => "form[username]", 'value' => '1'], ['name' => "form[is_active]", 'value' => '1'], ['name' => "form[id]", 'value' => '9'], ]; $arr = array_column($arr, null, 'name'); echo $arr['form[id]']['value'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L1gLR
function name:  (null)
number of ops:  11
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'array_column'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 null
          4        SEND_VAL                                                 'name'
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
   10     7        FETCH_DIM_R                                      ~4      !0, 'form%5Bid%5D'
          8        FETCH_DIM_R                                      ~5      ~4, 'value'
          9        ECHO                                                     ~5
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.45 ms | 996 KiB | 14 Q