3v4l.org

run code in 300+ PHP versions simultaneously
<?php switch('1') { case '1': print("Book Details<br />"); case '2': print("Book Author<br />"); default: print("Missing Book<br />"); }
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 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r5ZWT
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   IS_EQUAL                                                 '1', '1'
          1      > JMPNZ                                                    ~0, ->5
    4     2    >   IS_EQUAL                                                 '1', '2'
          3      > JMPNZ                                                    ~0, ->6
          4    > > JMP                                                      ->7
    3     5    >   ECHO                                                     'Book+Details%3Cbr+%2F%3E'
    4     6    >   ECHO                                                     'Book+Author%3Cbr+%2F%3E'
    5     7    >   ECHO                                                     'Missing+Book%3Cbr+%2F%3E'
    6     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.97 ms | 1384 KiB | 13 Q