3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(array(1)); $b = NULL; if(!empty($a) && isset($b) && isset($a[$b]['pqr'])){ print 'in switch'; } else { print 'Empty'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
Branch analysis from position: 7
filename:       /in/agroa
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, null
    4     2        ISSET_ISEMPTY_CV                                 ~4      !0
          3        BOOL_NOT                                         ~5      ~4
          4      > JMPZ_EX                                          ~5      ~5, ->7
          5    >   ISSET_ISEMPTY_CV                                 ~6      !1
          6        BOOL                                             ~5      ~6
          7    > > JMPZ_EX                                          ~5      ~5, ->11
          8    >   FETCH_DIM_IS                                     ~7      !0, !1
          9        ISSET_ISEMPTY_DIM_OBJ                         0  ~8      ~7, 'pqr'
         10        BOOL                                             ~5      ~8
         11    > > JMPZ                                                     ~5, ->14
    5    12    >   ECHO                                                     'in+switch'
         13      > JMP                                                      ->15
    8    14    >   ECHO                                                     'Empty'
    9    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.15 ms | 1385 KiB | 13 Q