3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.44 ms | 1395 KiB | 13 Q