3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime('2020-06-06'); $i = new DateInterval('P1Y'); $now = new DateTime; while ($date >= $now) { echo $date->format('c') . PHP_EOL; $date = $date->sub($i); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 12
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 12
Branch analysis from position: 23
Branch analysis from position: 12
filename:       /in/f7Oq3
function name:  (null)
number of ops:  24
compiled vars:  !0 = $date, !1 = $i, !2 = $now
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'DateTime'
          1        SEND_VAL_EX                                              '2020-06-06'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    4     4        NEW                                              $6      'DateInterval'
          5        SEND_VAL_EX                                              'P1Y'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
    5     8        NEW                                              $9      'DateTime'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !2, $9
    6    11      > JMP                                                      ->21
    7    12    >   INIT_METHOD_CALL                                         !0, 'format'
         13        SEND_VAL_EX                                              'c'
         14        DO_FCALL                                      0  $12     
         15        CONCAT                                           ~13     $12, '%0A'
         16        ECHO                                                     ~13
    8    17        INIT_METHOD_CALL                                         !0, 'sub'
         18        SEND_VAR_EX                                              !1
         19        DO_FCALL                                      0  $14     
         20        ASSIGN                                                   !0, $14
    6    21    >   IS_SMALLER_OR_EQUAL                                      !2, !0
         22      > JMPNZ                                                    ~16, ->12
    9    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.3 ms | 1394 KiB | 13 Q