3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.69 ms | 1393 KiB | 13 Q