3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start_date = "06/25/2012"; $date = strtotime($start_date); $X=1; while ($X <= 10) { $X++; $date = strtotime("+1 weeks", $date); echo date('m/d/Y', $date)."\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 7
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 7
Branch analysis from position: 21
Branch analysis from position: 7
filename:       /in/Lgrnr
function name:  (null)
number of ops:  22
compiled vars:  !0 = $start_date, !1 = $date, !2 = $X
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '06%2F25%2F2012'
    4     1        INIT_FCALL                                               'strtotime'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    5     5        ASSIGN                                                   !2, 1
    7     6      > JMP                                                      ->19
    8     7    >   PRE_INC                                                  !2
    9     8        INIT_FCALL                                               'strtotime'
          9        SEND_VAL                                                 '%2B1+weeks'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !1, $8
   10    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'm%2Fd%2FY'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $10     
         17        CONCAT                                           ~11     $10, '%0A'
         18        ECHO                                                     ~11
    7    19    >   IS_SMALLER_OR_EQUAL                                      !2, 10
         20      > JMPNZ                                                    ~12, ->7
   11    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
453.15 ms | 1014 KiB | 15 Q