3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nullvar = array(0 => 'a', 'a' => array('b')); $nullvar[0]['a'] = NULL; if (isset($nullvar[0]['a'])) { echo "set"; } else { echo "not set"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tsSPY
function name:  (null)
number of ops:  11
compiled vars:  !0 = $nullvar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        FETCH_DIM_W                                      $2      !0, 0
          2        ASSIGN_DIM                                               $2, 'a'
          3        OP_DATA                                                  null
    6     4        FETCH_DIM_IS                                     ~4      !0, 0
          5        ISSET_ISEMPTY_DIM_OBJ                         0          ~4, 'a'
          6      > JMPZ                                                     ~5, ->9
    7     7    >   ECHO                                                     'set'
          8      > JMP                                                      ->10
    9     9    >   ECHO                                                     'not+set'
   10    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.15 ms | 1393 KiB | 13 Q