3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i=3; $i<=18; $i+=3) { $attend = array('arena_succount' => $i); $succcount = 2 + ($attend['arena_succount'] % 6 == 0); echo $i . ' ' . $succcount . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 2
Branch analysis from position: 16
Branch analysis from position: 2
filename:       /in/iZF14
function name:  (null)
number of ops:  17
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                                                      ->14
    4     2    >   INIT_ARRAY                                       ~4      !0, 'arena_succount'
          3        ASSIGN                                                   !1, ~4
    5     4        FETCH_DIM_R                                      ~6      !1, 'arena_succount'
          5        MOD                                              ~7      ~6, 6
          6        IS_EQUAL                                         ~8      ~7, 0
          7        ADD                                              ~9      2, ~8
          8        ASSIGN                                                   !2, ~9
    6     9        CONCAT                                           ~11     !0, '+'
         10        CONCAT                                           ~12     ~11, !2
         11        CONCAT                                           ~13     ~12, '%0A'
         12        ECHO                                                     ~13
    3    13        ASSIGN_OP                                     1          !0, 3
         14    >   IS_SMALLER_OR_EQUAL                                      !0, 18
         15      > JMPNZ                                                    ~15, ->2
    7    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.14 ms | 1394 KiB | 13 Q