3v4l.org

run code in 300+ PHP versions simultaneously
<?php switch(2){ case 1: echo "it's 1"; break; case 2: echo "it's 2"; break; default: echo "i don't know what that shit is"; }
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 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
filename:       /in/B37L6
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   IS_EQUAL                                                 2, 1
          1      > JMPNZ                                                    ~0, ->5
    5     2    >   IS_EQUAL                                                 2, 2
          3      > JMPNZ                                                    ~0, ->7
          4    > > JMP                                                      ->9
    4     5    >   ECHO                                                     'it%27s+1'
          6      > JMP                                                      ->10
    5     7    >   ECHO                                                     'it%27s+2'
          8      > JMP                                                      ->10
    6     9    >   ECHO                                                     'i+don%27t+know+what+that+shit+is'
    7    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.47 ms | 1393 KiB | 13 Q