3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ( $i = 999, $res = 0; $i; $i--) { ( 0 === $i & 5 || 5 === $i & 5 || 0 === $i % 3 ) and $res += $i; } echo $res;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
2 jumps found. (Code = 47) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
2 jumps found. (Code = 46) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
Branch analysis from position: 3
Branch analysis from position: 16
Branch analysis from position: 13
Branch analysis from position: 9
filename:       /in/J8KCu
function name:  (null)
number of ops:  20
compiled vars:  !0 = $i, !1 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 999
          1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->17
    4     3    >   IS_IDENTICAL                                     ~4      !0, 0
          4        BW_AND                                           ~5      ~4, 5
          5      > JMPNZ_EX                                         ~5      ~5, ->9
          6    >   IS_IDENTICAL                                     ~6      !0, 5
          7        BW_AND                                           ~7      ~6, 5
          8        BOOL                                             ~5      ~7
          9    > > JMPNZ_EX                                         ~5      ~5, ->13
         10    >   MOD                                              ~8      !0, 3
         11        IS_IDENTICAL                                     ~9      ~8, 0
         12        BOOL                                             ~5      ~9
         13    > > JMPZ_EX                                          ~5      ~5, ->16
         14    >   ASSIGN_OP                                     1  ~10     !1, !0
         15        BOOL                                             ~5      ~10
    3    16    >   PRE_DEC                                                  !0
         17    > > JMPNZ                                                    !0, ->3
    7    18    >   ECHO                                                     !1
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.33 ms | 1394 KiB | 13 Q