3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime('now'); $date->format('dmY'); for ($i = 1; $i <= 10; $i++) { $date->modify('+1 day'); echo date($date); } ?>
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/RWZfj
function name:  (null)
number of ops:  20
compiled vars:  !0 = $date, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              'now'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        INIT_METHOD_CALL                                         !0, 'format'
          5        SEND_VAL_EX                                              'dmY'
          6        DO_FCALL                                      0          
    6     7        ASSIGN                                                   !1, 1
          8      > JMP                                                      ->17
    7     9    >   INIT_METHOD_CALL                                         !0, 'modify'
         10        SEND_VAL_EX                                              '%2B1+day'
         11        DO_FCALL                                      0          
    8    12        INIT_FCALL                                               'date'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $8      
         15        ECHO                                                     $8
    6    16        PRE_INC                                                  !1
         17    >   IS_SMALLER_OR_EQUAL                                      !1, 10
         18      > JMPNZ                                                    ~10, ->9
   12    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.48 ms | 1399 KiB | 15 Q