3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.1 ms | 1395 KiB | 15 Q