3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fizzPrint = 3; $buzzPrint = 5; $fizzPrintWord = "Fizz"; $buzzPrintWord = "Buzz"; $bothPrintWord = "FizzBuzz"; $returnString = ''; $proceed = true; for($i=1; $i<=100; $i++) { if($i %$fizzPrint == 0) { $returnString .= $fizzPrintWord; } if($i %$buzzPrint == 0) { $returnString .= $buzzPrintWord; } if($i %$fizzPrint !== 0 && $i %$buzzPrint !== 0) { $returnString .= $i; } $returnString .= "\n"; } echo $returnString;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 9
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
2 jumps found. (Code = 46) Position 1 = 20, Position 2 = 23
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 25
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 9
Branch analysis from position: 29
Branch analysis from position: 9
Branch analysis from position: 25
Branch analysis from position: 23
Branch analysis from position: 17
Branch analysis from position: 13
filename:       /in/VCntW
function name:  (null)
number of ops:  31
compiled vars:  !0 = $fizzPrint, !1 = $buzzPrint, !2 = $fizzPrintWord, !3 = $buzzPrintWord, !4 = $bothPrintWord, !5 = $returnString, !6 = $proceed, !7 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 3
    4     1        ASSIGN                                                   !1, 5
    5     2        ASSIGN                                                   !2, 'Fizz'
    6     3        ASSIGN                                                   !3, 'Buzz'
    7     4        ASSIGN                                                   !4, 'FizzBuzz'
    8     5        ASSIGN                                                   !5, ''
    9     6        ASSIGN                                                   !6, <true>
   11     7        ASSIGN                                                   !7, 1
          8      > JMP                                                      ->27
   12     9    >   MOD                                              ~16     !7, !0
         10        IS_EQUAL                                                 ~16, 0
         11      > JMPZ                                                     ~17, ->13
   13    12    >   ASSIGN_OP                                     8          !5, !2
   15    13    >   MOD                                              ~19     !7, !1
         14        IS_EQUAL                                                 ~19, 0
         15      > JMPZ                                                     ~20, ->17
   16    16    >   ASSIGN_OP                                     8          !5, !3
   18    17    >   MOD                                              ~22     !7, !0
         18        IS_NOT_IDENTICAL                                 ~23     ~22, 0
         19      > JMPZ_EX                                          ~23     ~23, ->23
         20    >   MOD                                              ~24     !7, !1
         21        IS_NOT_IDENTICAL                                 ~25     ~24, 0
         22        BOOL                                             ~23     ~25
         23    > > JMPZ                                                     ~23, ->25
   19    24    >   ASSIGN_OP                                     8          !5, !7
   21    25    >   ASSIGN_OP                                     8          !5, '%0A'
   11    26        PRE_INC                                                  !7
         27    >   IS_SMALLER_OR_EQUAL                                      !7, 100
         28      > JMPNZ                                                    ~29, ->9
   23    29    >   ECHO                                                     !5
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.62 ms | 1386 KiB | 13 Q