3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 1; $i < 101; $i ++) { $output = null; if (($i % 3) == 0) { $output = "Fizz"; } if (($i % 5) == 0) { $output .= "Buzz"; } echo $i . " : " . $output . "<br />"; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
Branch analysis from position: 2
Branch analysis from position: 11
Branch analysis from position: 7
filename:       /in/ILGAi
function name:  (null)
number of ops:  19
compiled vars:  !0 = $i, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
          1      > JMP                                                      ->16
    3     2    >   ASSIGN                                                   !1, null
    4     3        MOD                                              ~4      !0, 3
          4        IS_EQUAL                                                 ~4, 0
          5      > JMPZ                                                     ~5, ->7
    5     6    >   ASSIGN                                                   !1, 'Fizz'
    7     7    >   MOD                                              ~7      !0, 5
          8        IS_EQUAL                                                 ~7, 0
          9      > JMPZ                                                     ~8, ->11
    8    10    >   ASSIGN_OP                                     8          !1, 'Buzz'
   10    11    >   CONCAT                                           ~10     !0, '+%3A+'
         12        CONCAT                                           ~11     ~10, !1
         13        CONCAT                                           ~12     ~11, '%3Cbr+%2F%3E'
         14        ECHO                                                     ~12
    2    15        PRE_INC                                                  !0
         16    >   IS_SMALLER                                               !0, 101
         17      > JMPNZ                                                    ~14, ->2
   12    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.03 ms | 1394 KiB | 13 Q