3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.65 ms | 1385 KiB | 13 Q