3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ ['CityDesc' => 'Burgbretzingen', 'CityId' => 63910], ['CityDesc' => 'Bühlerzimmern', 'CityId' => 1288010], ['CityDesc' => 'Einkorn', 'CityId' => 320610] ]; $res = array_column($a, 'CityId', 'CityDesc'); echo empty($res['Burgbretzingen']) ? '' : $res['Burgbretzingen'];
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s1TNk
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'array_column'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'CityId'
          4        SEND_VAL                                                 'CityDesc'
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    9     7        ISSET_ISEMPTY_DIM_OBJ                         1          !1, 'Burgbretzingen'
          8      > JMPZ                                                     ~5, ->11
          9    >   QM_ASSIGN                                        ~6      ''
         10      > JMP                                                      ->13
         11    >   FETCH_DIM_R                                      ~7      !1, 'Burgbretzingen'
         12        QM_ASSIGN                                        ~6      ~7
         13    >   ECHO                                                     ~6
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.68 ms | 1001 KiB | 14 Q