3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xyz[][][]=0; $abc = [ "MA" => [ "Zia Rehman" => [] ] ]; if(array_key_exists("Zia Rehman", $xyz)) { $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 = 10
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/2hESe
function name:  (null)
number of ops:  14
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, ->10
    9     7    >   FETCH_DIM_W                                      $7      !0, 'MA'
          8        ASSIGN_DIM                                               $7, 'Zia+Rehman'
          9        OP_DATA                                                  <array>
   11    10    >   INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.78 ms | 1394 KiB | 15 Q