3v4l.org

run code in 300+ PHP versions simultaneously
<?php switch(false){ case true: echo 'test1'; break; default: echo 'test2'; break; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 2
Branch analysis from position: 1
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
filename:       /in/FQCo5
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E > > JMPZ                                                     <true>, ->2
          1    > > JMP                                                      ->4
    4     2    >   ECHO                                                     'test1'
    5     3      > JMP                                                      ->6
    7     4    >   ECHO                                                     'test2'
    8     5      > JMP                                                      ->6
    9     6    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.24 ms | 1393 KiB | 13 Q