3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.71 ms | 997 KiB | 13 Q