3v4l.org

run code in 300+ PHP versions simultaneously
<?php $one_year_ago = date('Y-m-d 0:00', strtotime("-1 year", time())); $retry_after_date = new DateTime($one_year_ago); echo 'start::'.$retry_after_date->format('Y-m-d H:i'); for ($i=5; $i < 50; $i+=5) { // $retry_after_date = DateAdd("n", 5, RetryAfterDate) $retry_after_date->add(new DateInterval('PT 5 M')); echo "\n$i::".$retry_after_date->format('Y-m-d H:i'); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 39, Position 2 = 22
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 39, Position 2 = 22
Branch analysis from position: 39
Branch analysis from position: 22
filename:       /in/tdaGt
function name:  (null)
number of ops:  40
compiled vars:  !0 = $one_year_ago, !1 = $retry_after_date, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d+0%3A00'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 '-1+year'
          4        INIT_FCALL                                               'time'
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !0, $5
    3    11        NEW                                              $7      'DateTime'
         12        SEND_VAR_EX                                              !0
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !1, $7
    4    15        INIT_METHOD_CALL                                         !1, 'format'
         16        SEND_VAL_EX                                              'Y-m-d+H%3Ai'
         17        DO_FCALL                                      0  $10     
         18        CONCAT                                           ~11     'start%3A%3A', $10
         19        ECHO                                                     ~11
    6    20        ASSIGN                                                   !2, 5
         21      > JMP                                                      ->37
    8    22    >   INIT_METHOD_CALL                                         !1, 'add'
         23        NEW                                              $13     'DateInterval'
         24        SEND_VAL_EX                                              'PT+5+M'
         25        DO_FCALL                                      0          
         26        SEND_VAR_NO_REF_EX                                       $13
         27        DO_FCALL                                      0          
    9    28        ROPE_INIT                                     3  ~17     '%0A'
         29        ROPE_ADD                                      1  ~17     ~17, !2
         30        ROPE_END                                      2  ~16     ~17, '%3A%3A'
         31        INIT_METHOD_CALL                                         !1, 'format'
         32        SEND_VAL_EX                                              'Y-m-d+H%3Ai'
         33        DO_FCALL                                      0  $19     
         34        CONCAT                                           ~20     ~16, $19
         35        ECHO                                                     ~20
    6    36        ASSIGN_OP                                     1          !2, 5
         37    >   IS_SMALLER                                               !2, 50
         38      > JMPNZ                                                    ~22, ->22
   10    39    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.65 ms | 1396 KiB | 19 Q