3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
197.75 ms | 2783 KiB | 12 Q