3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startDate = new DateTime('now'); $dateInterval = 5; for($di = 0; $di > $dateInterval; ++$di) { $theDate = $startDate->add(new DateInterval('P1D')); }
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 = 7
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
Branch analysis from position: 7
filename:       /in/7JpfC
function name:  (null)
number of ops:  18
compiled vars:  !0 = $startDate, !1 = $dateInterval, !2 = $di, !3 = $theDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'DateTime'
          1        SEND_VAL_EX                                              'now'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $4
    4     4        ASSIGN                                                   !1, 5
    6     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->15
    8     7    >   INIT_METHOD_CALL                                         !0, 'add'
          8        NEW                                              $9      'DateInterval'
          9        SEND_VAL_EX                                              'P1D'
         10        DO_FCALL                                      0          
         11        SEND_VAR_NO_REF_EX                                       $9
         12        DO_FCALL                                      0  $11     
         13        ASSIGN                                                   !3, $11
    6    14        PRE_INC                                                  !2
         15    >   IS_SMALLER                                               !1, !2
         16      > JMPNZ                                                    ~14, ->7
    9    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.5 ms | 1394 KiB | 13 Q