3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.47 ms | 1393 KiB | 13 Q