3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.62 ms | 1395 KiB | 13 Q