3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.99 ms | 1393 KiB | 13 Q