3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.89 ms | 1394 KiB | 13 Q