3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147 ms | 1392 KiB | 13 Q