3v4l.org

run code in 300+ PHP versions simultaneously
<?php switch(1) { case 1: echo 1; continue; case 2: echo 2; } switch(2) { case 1: echo 1; continue; case 2: echo 2; } switch(1) { case 1: echo 1; break; case 2: echo 2; } switch(2) { case 1: echo 1; break; case 2: echo 2; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 2, Position 2 = 5
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 23
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 29
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 31
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 29
Branch analysis from position: 26
Branch analysis from position: 29
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
Branch analysis from position: 21
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
Branch analysis from position: 13
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
filename:       /in/70OuQ
function name:  (null)
number of ops:  33
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   IS_EQUAL                                                 1, 1
          1      > JMPNZ                                                    ~0, ->5
    5     2    >   IS_EQUAL                                                 1, 2
          3      > JMPNZ                                                    ~0, ->7
          4    > > JMP                                                      ->8
    4     5    >   ECHO                                                     1
          6      > JMP                                                      ->8
    5     7    >   ECHO                                                     2
    8     8    >   IS_EQUAL                                                 2, 1
          9      > JMPNZ                                                    ~1, ->13
    9    10    >   IS_EQUAL                                                 2, 2
         11      > JMPNZ                                                    ~1, ->15
         12    > > JMP                                                      ->16
    8    13    >   ECHO                                                     1
         14      > JMP                                                      ->16
    9    15    >   ECHO                                                     2
   12    16    >   IS_EQUAL                                                 1, 1
         17      > JMPNZ                                                    ~2, ->21
   13    18    >   IS_EQUAL                                                 1, 2
         19      > JMPNZ                                                    ~2, ->23
         20    > > JMP                                                      ->24
   12    21    >   ECHO                                                     1
         22      > JMP                                                      ->24
   13    23    >   ECHO                                                     2
   16    24    >   IS_EQUAL                                                 2, 1
         25      > JMPNZ                                                    ~3, ->29
   17    26    >   IS_EQUAL                                                 2, 2
         27      > JMPNZ                                                    ~3, ->31
         28    > > JMP                                                      ->32
   16    29    >   ECHO                                                     1
         30      > JMP                                                      ->32
   17    31    >   ECHO                                                     2
   18    32    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.32 ms | 1438 KiB | 13 Q