3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.02 ms | 1394 KiB | 13 Q