3v4l.org

run code in 500+ PHP versions simultaneously
<?php $MyVar = 1; ?> <?php switch($MyVar): ?> <?php case '1': ?> Step One <?php break; ?> <?php case '2': ?> Step Two <?php break; ?> <?php endswitch; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
filename:       /in/Lj7L7
function name:  (null)
number of ops:  11
compiled vars:  !0 = $MyVar
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    1     0  E >   ASSIGN                                                       !0, 1
    3     1        IS_EQUAL                                                     !0, '1'
          2      > JMPNZ                                                        ~2, ->6
    6     3    >   IS_EQUAL                                                     !0, '2'
          4      > JMPNZ                                                        ~2, ->8
          5    > > JMP                                                          ->10
    4     6    >   ECHO                                                         'Step+One%0A'
    5     7      > JMP                                                          ->10
    7     8    >   ECHO                                                         'Step+Two%0A'
    8     9      > JMP                                                          ->10
    9    10    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
126.64 ms | 474 KiB | 7 Q