3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nullvar[0]['a']= ''; if (isset($nullvar[0]['a']['r'])) { echo "set"; } else { echo "not set"; } if (is_null($nullvar[0]['a']['r'])) { echo "\nnull"; } else { echo "\nnot null"; }
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
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
Branch analysis from position: 17
filename:       /in/sgnqd
function name:  (null)
number of ops:  19
compiled vars:  !0 = $nullvar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_DIM_W                                      $1      !0, 0
          1        ASSIGN_DIM                                               $1, 'a'
          2        OP_DATA                                                  ''
    6     3        FETCH_DIM_IS                                     ~3      !0, 0
          4        FETCH_DIM_IS                                     ~4      ~3, 'a'
          5        ISSET_ISEMPTY_DIM_OBJ                         0          ~4, 'r'
          6      > JMPZ                                                     ~5, ->9
    7     7    >   ECHO                                                     'set'
          8      > JMP                                                      ->10
    9     9    >   ECHO                                                     'not+set'
   12    10    >   FETCH_DIM_R                                      ~6      !0, 0
         11        FETCH_DIM_R                                      ~7      ~6, 'a'
         12        FETCH_DIM_R                                      ~8      ~7, 'r'
         13        TYPE_CHECK                                    2          ~8
         14      > JMPZ                                                     ~9, ->17
   13    15    >   ECHO                                                     '%0Anull'
         16      > JMP                                                      ->18
   15    17    >   ECHO                                                     '%0Anot+null'
   16    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.75 ms | 1385 KiB | 13 Q