3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.34 ms | 1395 KiB | 13 Q