3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1); $b = ''; if(!empty($a) && 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 = 8
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/HKnpl
function name:  (null)
number of ops:  13
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, ''
    4     2        ISSET_ISEMPTY_CV                                 ~4      !0
          3        BOOL_NOT                                         ~5      ~4
          4      > JMPZ_EX                                          ~5      ~5, ->8
          5    >   FETCH_DIM_IS                                     ~6      !0, !1
          6        ISSET_ISEMPTY_DIM_OBJ                         0  ~7      ~6, 'pqr'
          7        BOOL                                             ~5      ~7
          8    > > JMPZ                                                     ~5, ->11
    5     9    >   ECHO                                                     'in+switch'
         10      > JMP                                                      ->12
    8    11    >   ECHO                                                     'Empty'
    9    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.46 ms | 1393 KiB | 13 Q