3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 14; switch ($i) { case $i > 0 && $i < 3: echo '00'; break; case $i > 6 && $i < 9: echo '15'; break; case $i > 12: echo 'foobar'; break; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 17
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 11
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 5
filename:       /in/SotIn
function name:  (null)
number of ops:  24
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 14
    5     1        IS_SMALLER                                       ~3      0, !0
          2      > JMPZ_EX                                          ~3      ~3, ->5
          3    >   IS_SMALLER                                       ~4      !0, 3
          4        BOOL                                             ~3      ~4
          5    >   IS_EQUAL                                                 !0, ~3
          6      > JMPNZ                                                    ~2, ->17
    9     7    >   IS_SMALLER                                       ~5      6, !0
          8      > JMPZ_EX                                          ~5      ~5, ->11
          9    >   IS_SMALLER                                       ~6      !0, 9
         10        BOOL                                             ~5      ~6
         11    >   IS_EQUAL                                                 !0, ~5
         12      > JMPNZ                                                    ~2, ->19
   13    13    >   IS_SMALLER                                       ~7      12, !0
         14        IS_EQUAL                                                 !0, ~7
         15      > JMPNZ                                                    ~2, ->21
         16    > > JMP                                                      ->23
    6    17    >   ECHO                                                     '00'
    7    18      > JMP                                                      ->23
   10    19    >   ECHO                                                     '15'
   11    20      > JMP                                                      ->23
   14    21    >   ECHO                                                     'foobar'
   15    22      > JMP                                                      ->23
   16    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.65 ms | 1395 KiB | 13 Q