3v4l.org

run code in 300+ PHP versions simultaneously
<?php $soda = "cola"; switch($soda): case "cola": echo "It's about cola"; case "big": echo "It's about big cola"; break; case "pepsi": echo "It's about pepsi"; break; default: echo "not at all"; endswitch;
Finding entry points
Branch analysis from position: 0
5 jumps found. (Code = 188) Position 1 = 9, Position 2 = 10, Position 3 = 12, Position 4 = 14, Position 5 = 2
Branch analysis from position: 9
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: 10
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 12
Branch analysis from position: 10
Branch analysis from position: 9
filename:       /in/doXYL
function name:  (null)
number of ops:  16
compiled vars:  !0 = $soda
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'cola'
    3     1      > SWITCH_STRING                                            !0, [ 'cola':->9, 'big':->10, 'pepsi':->12, ], ->14
    4     2    >   IS_EQUAL                                                 !0, 'cola'
          3      > JMPNZ                                                    ~2, ->9
    6     4    >   IS_EQUAL                                                 !0, 'big'
          5      > JMPNZ                                                    ~2, ->10
    9     6    >   IS_EQUAL                                                 !0, 'pepsi'
          7      > JMPNZ                                                    ~2, ->12
          8    > > JMP                                                      ->14
    5     9    >   ECHO                                                     'It%27s+about+cola'
    7    10    >   ECHO                                                     'It%27s+about+big+cola'
    8    11      > JMP                                                      ->15
   10    12    >   ECHO                                                     'It%27s+about+pepsi'
   11    13      > JMP                                                      ->15
   13    14    >   ECHO                                                     'not+at+all'
   14    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.79 ms | 1394 KiB | 13 Q