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 = 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 = 8, Position 2 = 14
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
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: 15
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
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 2
Branch analysis from position: 22
Branch analysis from position: 2
filename:       /in/RcXJU
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        FETCH_CONSTANT                                   ~5      'i'
          4        MOD                                              ~6      ~5, 3
          5        IS_EQUAL                                         ~7      ~6, 0
          6        IS_EQUAL                                                 !0, ~7
          7      > JMPNZ                                                    ~4, ->14
    7     8    >   FETCH_CONSTANT                                   ~8      'i'
          9        MOD                                              ~9      ~8, 5
         10        IS_EQUAL                                         ~10     ~9, 0
         11        IS_EQUAL                                                 !0, ~10
         12      > JMPNZ                                                    ~4, ->15
         13    > > JMP                                                      ->16
    6    14    >   ASSIGN_OP                                     8          !1, 'Fizz'
    8    15    >   ASSIGN_OP                                     8          !1, 'Buzz'
   10    16    >   ASSIGN                                                   !1, !0
   12    17        CONCAT                                           ~14     !1, '%5Cn'
         18        ECHO                                                     ~14
    2    19        PRE_INC                                                  !0
         20    >   IS_SMALLER_OR_EQUAL                                      !0, 100
         21      > JMPNZ                                                    ~16, ->2
   13    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.48 ms | 1395 KiB | 13 Q