3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('foo' => null, null => "abc"); var_dump(isset($a[null])); var_dump(isset($a['foo'])); var_dump((isset($a['foo']) || $a['foo'] === null));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/SYCuj
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'var_dump'
          2        ISSET_ISEMPTY_DIM_OBJ                         0  ~2      !0, null
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                                 
    6     5        INIT_FCALL                                               'var_dump'
          6        ISSET_ISEMPTY_DIM_OBJ                         0  ~4      !0, 'foo'
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'var_dump'
         10        ISSET_ISEMPTY_DIM_OBJ                         0  ~6      !0, 'foo'
         11      > JMPNZ_EX                                         ~6      ~6, ->15
         12    >   FETCH_DIM_R                                      ~7      !0, 'foo'
         13        TYPE_CHECK                                    2  ~8      ~7
         14        BOOL                                             ~6      ~8
         15    >   SEND_VAL                                                 ~6
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.6 ms | 1394 KiB | 15 Q