3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.19 ms | 1393 KiB | 13 Q