3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($weekdate = 18; $weekdate >= 0; $weekdate--) { $newdate = date('d m y', strtotime("+" . $weekdate . " Week")); //add 1 to number of weeks from today echo $newdate."\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 2
Branch analysis from position: 17
Branch analysis from position: 2
filename:       /in/lKYVh
function name:  (null)
number of ops:  18
compiled vars:  !0 = $weekdate, !1 = $newdate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 18
          1      > JMP                                                      ->15
    4     2    >   INIT_FCALL                                               'date'
          3        SEND_VAL                                                 'd+m+y'
          4        INIT_FCALL                                               'strtotime'
          5        CONCAT                                           ~3      '%2B', !0
          6        CONCAT                                           ~4      ~3, '+Week'
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !1, $6
    6    12        CONCAT                                           ~8      !1, '%0A'
         13        ECHO                                                     ~8
    3    14        PRE_DEC                                                  !0
         15    >   IS_SMALLER_OR_EQUAL                                      0, !0
         16      > JMPNZ                                                    ~10, ->2
    7    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.98 ms | 1011 KiB | 15 Q