3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime('now'); for ($i = 1; $i <= 10; $i++) { $date->modify('+1 day'); echo $date->format('dmY'). "\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 = 6
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
Branch analysis from position: 6
filename:       /in/Nvtvb
function name:  (null)
number of ops:  18
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
    6     4        ASSIGN                                                   !1, 1
          5      > JMP                                                      ->15
    7     6    >   INIT_METHOD_CALL                                         !0, 'modify'
          7        SEND_VAL_EX                                              '%2B1+day'
          8        DO_FCALL                                      0          
    8     9        INIT_METHOD_CALL                                         !0, 'format'
         10        SEND_VAL_EX                                              'dmY'
         11        DO_FCALL                                      0  $7      
         12        CONCAT                                           ~8      $7, '%0A'
         13        ECHO                                                     ~8
    6    14        PRE_INC                                                  !1
         15    >   IS_SMALLER_OR_EQUAL                                      !1, 10
         16      > JMPNZ                                                    ~10, ->6
   12    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.63 ms | 1385 KiB | 13 Q