3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.63 ms | 1394 KiB | 13 Q