3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); $x = []; if (!isset($x['y']['z']['a'])) { $x['y']['z']['a'] = 'foo'; } var_dump($x);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/tmXSW
function name:  (null)
number of ops:  17
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, <array>
    4     4        FETCH_DIM_IS                                     ~3      !0, 'y'
          5        FETCH_DIM_IS                                     ~4      ~3, 'z'
          6        ISSET_ISEMPTY_DIM_OBJ                         0  ~5      ~4, 'a'
          7        BOOL_NOT                                         ~6      ~5
          8      > JMPZ                                                     ~6, ->13
    6     9    >   FETCH_DIM_W                                      $7      !0, 'y'
         10        FETCH_DIM_W                                      $8      $7, 'z'
         11        ASSIGN_DIM                                               $8, 'a'
         12        OP_DATA                                                  'foo'
    9    13    >   INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.94 ms | 1394 KiB | 17 Q