3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dt1 = new DateTime('2019-01-28'); $dt2 = new DateTime('2018-10-17'); while($dt1 >= $dt2) { echo $dt1->format('Y-m-d') . "\r\n"; $dt1->modify('-1 day'); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 9
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 9
Branch analysis from position: 19
Branch analysis from position: 9
filename:       /in/aJ17p
function name:  (null)
number of ops:  20
compiled vars:  !0 = $dt1, !1 = $dt2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $2      'DateTime'
          1        SEND_VAL_EX                                                  '2019-01-28'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $2
    4     4        NEW                                                  $5      'DateTime'
          5        SEND_VAL_EX                                                  '2018-10-17'
          6        DO_FCALL                                          0          
          7        ASSIGN                                                       !1, $5
    6     8      > JMP                                                          ->17
    7     9    >   INIT_METHOD_CALL                                             !0, 'format'
         10        SEND_VAL_EX                                                  'Y-m-d'
         11        DO_FCALL                                          0  $8      
         12        CONCAT                                               ~9      $8, '%0D%0A'
         13        ECHO                                                         ~9
    8    14        INIT_METHOD_CALL                                             !0, 'modify'
         15        SEND_VAL_EX                                                  '-1+day'
         16        DO_FCALL                                          0          
    6    17    >   IS_SMALLER_OR_EQUAL                                          !1, !0
         18      > JMPNZ                                                        ~11, ->9
    9    19    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
173.33 ms | 2401 KiB | 14 Q