3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = [ 0 => [ "id" => 2, "title" => "Test", "alt_text" => 'This is test', ], 1 => [ "id" => 3, "title" => "Test1", "alt_text" => 'This is test1', ], 2 => [ "id" => 7, "title" => "Test2", "alt_text" => "This is test2", ], ]; $temp = array_column($arr, 'title', 'id'); echo $temp[2]; // will result Test
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/90t4g
function name:  (null)
number of ops:  10
compiled vars:  !0 = $arr, !1 = $temp
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
   29     1        INIT_FCALL                                                   'array_column'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     'title'
          4        SEND_VAL                                                     'id'
          5        DO_ICALL                                             $3      
          6        ASSIGN                                                       !1, $3
   30     7        FETCH_DIM_R                                          ~5      !1, 2
          8        ECHO                                                         ~5
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
154.57 ms | 2020 KiB | 14 Q