3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = date('Y-m-d H:m:s'); $i=0; while($i<10) { $days = $i * 7; echo $date = date('Y-m-d H:m:s', strtotime($date. $days.' days')); $i++; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 6
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 6
Branch analysis from position: 22
Branch analysis from position: 6
filename:       /in/hVgf9
function name:  (null)
number of ops:  23
compiled vars:  !0 = $date, !1 = $i, !2 = $days
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d+H%3Am%3As'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4        ASSIGN                                                   !1, 0
    4     5      > JMP                                                      ->20
    5     6    >   MUL                                              ~6      !1, 7
          7        ASSIGN                                                   !2, ~6
    6     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'Y-m-d+H%3Am%3As'
         10        INIT_FCALL                                               'strtotime'
         11        CONCAT                                           ~8      !0, !2
         12        CONCAT                                           ~9      ~8, '+days'
         13        SEND_VAL                                                 ~9
         14        DO_ICALL                                         $10     
         15        SEND_VAR                                                 $10
         16        DO_ICALL                                         $11     
         17        ASSIGN                                           ~12     !0, $11
         18        ECHO                                                     ~12
    7    19        PRE_INC                                                  !1
    4    20    >   IS_SMALLER                                               !1, 10
         21      > JMPNZ                                                    ~14, ->6
    8    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.75 ms | 1387 KiB | 17 Q