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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.21 ms | 1398 KiB | 13 Q