3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = array(); $a = 'a'; var_dump(isset($foo[$a])); var_dump(isset($foo[$a]['b'])); var_dump(isset($foo[$a]->bar['b'])); var_dump(isset($bar[$a])); var_dump(isset($bar[$a]['b']));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bM3Mv
function name:  (null)
number of ops:  27
compiled vars:  !0 = $foo, !1 = $a, !2 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 'a'
    6     2        INIT_FCALL                                               'var_dump'
          3        ISSET_ISEMPTY_DIM_OBJ                         0  ~5      !0, !1
          4        SEND_VAL                                                 ~5
          5        DO_ICALL                                                 
    7     6        INIT_FCALL                                               'var_dump'
          7        FETCH_DIM_IS                                     ~7      !0, !1
          8        ISSET_ISEMPTY_DIM_OBJ                         0  ~8      ~7, 'b'
          9        SEND_VAL                                                 ~8
         10        DO_ICALL                                                 
    8    11        INIT_FCALL                                               'var_dump'
         12        FETCH_DIM_IS                                     ~10     !0, !1
         13        FETCH_OBJ_IS                                     ~11     ~10, 'bar'
         14        ISSET_ISEMPTY_DIM_OBJ                         0  ~12     ~11, 'b'
         15        SEND_VAL                                                 ~12
         16        DO_ICALL                                                 
    9    17        INIT_FCALL                                               'var_dump'
         18        ISSET_ISEMPTY_DIM_OBJ                         0  ~14     !2, !1
         19        SEND_VAL                                                 ~14
         20        DO_ICALL                                                 
   10    21        INIT_FCALL                                               'var_dump'
         22        FETCH_DIM_IS                                     ~16     !2, !1
         23        ISSET_ISEMPTY_DIM_OBJ                         0  ~17     ~16, 'b'
         24        SEND_VAL                                                 ~17
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.16 ms | 1395 KiB | 15 Q