3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xyz[][][]=0; $abc = [ "MA" => [ "Zia Rehman" => [] ] ]; if(array_key_exists("Zia Rehman", $xyz)) { echo "hi"; $xyz['MA']['Zia Rehman'] = []; } var_dump($xyz);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/5WLOX
function name:  (null)
number of ops:  15
compiled vars:  !0 = $xyz, !1 = $abc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_DIM_W                                      $2      !0
          1        FETCH_DIM_W                                      $3      $2
          2        ASSIGN_DIM                                               $3
          3        OP_DATA                                                  0
    3     4        ASSIGN                                                   !1, <array>
    8     5        ARRAY_KEY_EXISTS                                         'Zia+Rehman', !0
          6      > JMPZ                                                     ~6, ->11
    9     7    >   ECHO                                                     'hi'
   10     8        FETCH_DIM_W                                      $7      !0, 'MA'
          9        ASSIGN_DIM                                               $7, 'Zia+Rehman'
         10        OP_DATA                                                  <array>
   12    11    >   INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.39 ms | 1394 KiB | 15 Q