3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i < 1000; $i++) { if (($i % 3) || ($i % 5)) { $count += $i; } } printf('Sum of $i: ' . $count);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 2
Branch analysis from position: 11
Branch analysis from position: 2
Branch analysis from position: 8
Branch analysis from position: 6
filename:       /in/ph9Pv
function name:  (null)
number of ops:  16
compiled vars:  !0 = $i, !1 = $count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->9
    3     2    >   MOD                                              ~3      !0, 3
          3      > JMPNZ_EX                                         ~3      ~3, ->6
          4    >   MOD                                              ~4      !0, 5
          5        BOOL                                             ~3      ~4
          6    > > JMPZ                                                     ~3, ->8
    4     7    >   ASSIGN_OP                                     1          !1, !0
    2     8    >   PRE_INC                                                  !0
          9    >   IS_SMALLER                                               !0, 1000
         10      > JMPNZ                                                    ~7, ->2
    7    11    >   INIT_FCALL                                               'printf'
         12        CONCAT                                           ~8      'Sum+of+%24i%3A+', !1
         13        SEND_VAL                                                 ~8
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.41 ms | 1395 KiB | 15 Q