3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sContext = 'abc'; switch ($sContext) { case 'SOMETHING': case 'CONSTANT': $sContext = 'something else'; break; case 'GLOBAL': case 'GLOBAL1': $sContext = 'something else'; // Fall through default: { $sContext = 'something else'; } }
Finding entry points
Branch analysis from position: 0
6 jumps found. (Code = 188) Position 1 = 11, Position 2 = 11, Position 3 = 13, Position 4 = 13, Position 5 = 14, Position 6 = 2
Branch analysis from position: 11
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: 11
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 14
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 13
Branch analysis from position: 13
Branch analysis from position: 11
Branch analysis from position: 11
filename:       /in/EvIpi
function name:  (null)
number of ops:  16
compiled vars:  !0 = $sContext
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'abc'
    5     1      > SWITCH_STRING                                            !0, [ 'SOMETHING':->11, 'CONSTANT':->11, 'GLOBAL':->13, 'GLOBAL1':->13, ], ->14
    7     2    >   IS_EQUAL                                                 !0, 'SOMETHING'
          3      > JMPNZ                                                    ~2, ->11
    8     4    >   IS_EQUAL                                                 !0, 'CONSTANT'
          5      > JMPNZ                                                    ~2, ->11
   11     6    >   IS_EQUAL                                                 !0, 'GLOBAL'
          7      > JMPNZ                                                    ~2, ->13
   12     8    >   IS_EQUAL                                                 !0, 'GLOBAL1'
          9      > JMPNZ                                                    ~2, ->13
         10    > > JMP                                                      ->14
    9    11    >   ASSIGN                                                   !0, 'something+else'
   10    12      > JMP                                                      ->15
   13    13    >   ASSIGN                                                   !0, 'something+else'
   17    14    >   ASSIGN                                                   !0, 'something+else'
   19    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.74 ms | 1394 KiB | 13 Q