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"; case ($i % 5 == 0): $retVal .= "Buzz"; default: $retVal = $i; } print $retVal."\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 2
Branch analysis from position: 20
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 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 2
Branch analysis from position: 20
Branch analysis from position: 2
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 2
Branch analysis from position: 20
Branch analysis from position: 2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 2
Branch analysis from position: 20
Branch analysis from position: 2
filename:       /in/gCUXD
function name:  (null)
number of ops:  21
compiled vars:  !0 = $i, !1 = $retVal
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
          1      > JMP                                                      ->18
    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
    7     7    >   MOD                                              ~7      !0, 5
          8        IS_EQUAL                                         ~8      ~7, 0
          9        IS_EQUAL                                                 !0, ~8
         10      > JMPNZ                                                    ~4, ->13
         11    > > JMP                                                      ->14
    6    12    >   ASSIGN_OP                                     8          !1, 'Fizz'
    8    13    >   ASSIGN_OP                                     8          !1, 'Buzz'
   10    14    >   ASSIGN                                                   !1, !0
   12    15        CONCAT                                           ~12     !1, '%0A'
         16        ECHO                                                     ~12
    2    17        PRE_INC                                                  !0
         18    >   IS_SMALLER_OR_EQUAL                                      !0, 100
         19      > JMPNZ                                                    ~14, ->2
   13    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.93 ms | 1394 KiB | 13 Q