3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(2 % 3); $dayIndex = 0; for ($i=0; $i < 10; $i++) { echo $dayIndex.PHP_EOL; $dayIndex = ($dayIndex + 1) % 3; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
Branch analysis from position: 6
filename:       /in/hCgCD
function name:  (null)
number of ops:  15
compiled vars:  !0 = $dayIndex, !1 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'var_dump'
          1        SEND_VAL                                                     2
          2        DO_ICALL                                                     
    3     3        ASSIGN                                                       !0, 0
    5     4        ASSIGN                                                       !1, 0
          5      > JMP                                                          ->12
    6     6    >   CONCAT                                               ~5      !0, '%0A'
          7        ECHO                                                         ~5
    7     8        ADD                                                  ~6      !0, 1
          9        MOD                                                  ~7      ~6, 3
         10        ASSIGN                                                       !0, ~7
    5    11        PRE_INC                                                      !1
         12    >   IS_SMALLER                                                   !1, 10
         13      > JMPNZ                                                        ~10, ->6
    9    14    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
175.06 ms | 1368 KiB | 14 Q