3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i=1; $i<=100; $i++) { if($i%2 == 0) { echo "fizz"; } if ($i%3 == 0) { echo "buzz"; } if (!($i%2 == 0 || $i%3 == 0)) { echo $i; } echo "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
2 jumps found. (Code = 47) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 19
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 2
Branch analysis from position: 23
Branch analysis from position: 2
Branch analysis from position: 19
Branch analysis from position: 16
Branch analysis from position: 10
Branch analysis from position: 6
filename:       /in/vSLoN
function name:  (null)
number of ops:  24
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
          1      > JMP                                                      ->21
    4     2    >   MOD                                              ~2      !0, 2
          3        IS_EQUAL                                                 ~2, 0
          4      > JMPZ                                                     ~3, ->6
    5     5    >   ECHO                                                     'fizz'
    8     6    >   MOD                                              ~4      !0, 3
          7        IS_EQUAL                                                 ~4, 0
          8      > JMPZ                                                     ~5, ->10
    9     9    >   ECHO                                                     'buzz'
   12    10    >   MOD                                              ~6      !0, 2
         11        IS_EQUAL                                         ~7      ~6, 0
         12      > JMPNZ_EX                                         ~7      ~7, ->16
         13    >   MOD                                              ~8      !0, 3
         14        IS_EQUAL                                         ~9      ~8, 0
         15        BOOL                                             ~7      ~9
         16    >   BOOL_NOT                                         ~10     ~7
         17      > JMPZ                                                     ~10, ->19
   13    18    >   ECHO                                                     !0
   16    19    >   ECHO                                                     '%0A'
    3    20        PRE_INC                                                  !0
         21    >   IS_SMALLER_OR_EQUAL                                      !0, 100
         22      > JMPNZ                                                    ~12, ->2
   17    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.21 ms | 1395 KiB | 13 Q