3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.42 ms | 1393 KiB | 13 Q