3v4l.org

run code in 300+ PHP versions simultaneously
<?php $userdb = array( array( 'uid' => '100', 'name' => 'Sandra Shush', 'pic_square' => 'urlof100' ), array( 'uid' => '5465', 'name' => 'Stefanie Mcmohn', 'pic_square' => 'urlof100' ), array( 'uid' => '40489', 'name' => 'Michael', 'pic_square' => 'urlof40489' ) ); // uid will be key and name will be its value $temp = array_column($userdb, 'name','uid'); echo $temp[100];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/12TcY
function name:  (null)
number of ops:  10
compiled vars:  !0 = $userdb, !1 = $temp
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                                                 'uid'
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
   22     7        FETCH_DIM_R                                      ~5      !1, 100
          8        ECHO                                                     ~5
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.92 ms | 1000 KiB | 14 Q