3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i=3; $i<=18; $i+=3) { $attend = array('arena_succount' => $i); $succcount = (1 + ($attend['arena_succount'] / 3 + 2) % 3) * 2; echo $i . ' ' . $succcount . PHP_EOL; }
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 = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
Branch analysis from position: 2
filename:       /in/Umaj5
function name:  (null)
number of ops:  19
compiled vars:  !0 = $i, !1 = $attend, !2 = $succcount
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 3
          1      > JMP                                                      ->16
    4     2    >   INIT_ARRAY                                       ~4      !0, 'arena_succount'
          3        ASSIGN                                                   !1, ~4
    5     4        FETCH_DIM_R                                      ~6      !1, 'arena_succount'
          5        DIV                                              ~7      ~6, 3
          6        ADD                                              ~8      ~7, 2
          7        MOD                                              ~9      ~8, 3
          8        ADD                                              ~10     1, ~9
          9        MUL                                              ~11     ~10, 2
         10        ASSIGN                                                   !2, ~11
    6    11        CONCAT                                           ~13     !0, '+'
         12        CONCAT                                           ~14     ~13, !2
         13        CONCAT                                           ~15     ~14, '%0A'
         14        ECHO                                                     ~15
    3    15        ASSIGN_OP                                     1          !0, 3
         16    >   IS_SMALLER_OR_EQUAL                                      !0, 18
         17      > JMPNZ                                                    ~17, ->2
    7    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.21 ms | 1393 KiB | 13 Q