3v4l.org

run code in 300+ PHP versions simultaneously
<?php $interval = new DateInterval('P1D'); // 1Day Interval $daterange = new DatePeriod($time['start'], $interval , 2); $return['days'] = array(); foreach($daterange as $date){ $return['days'][] = $date->format("Y-m-d"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 23
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 23
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/hkhe1
function name:  (null)
number of ops:  25
compiled vars:  !0 = $interval, !1 = $daterange, !2 = $time, !3 = $return, !4 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $5      'DateInterval'
          1        SEND_VAL_EX                                              'P1D'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $5
    3     4        NEW                                              $8      'DatePeriod'
          5        CHECK_FUNC_ARG                                           
          6        FETCH_DIM_FUNC_ARG                               $9      !2, 'start'
          7        SEND_FUNC_ARG                                            $9
          8        SEND_VAR_EX                                              !0
          9        SEND_VAL_EX                                              2
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !1, $8
    5    12        ASSIGN_DIM                                               !3, 'days'
         13        OP_DATA                                                  <array>
    7    14      > FE_RESET_R                                       $13     !1, ->23
         15    > > FE_FETCH_R                                               $13, !4, ->23
    8    16    >   INIT_METHOD_CALL                                         !4, 'format'
         17        SEND_VAL_EX                                              'Y-m-d'
         18        DO_FCALL                                      0  $16     
         19        FETCH_DIM_W                                      $14     !3, 'days'
         20        ASSIGN_DIM                                               $14
         21        OP_DATA                                                  $16
    7    22      > JMP                                                      ->15
         23    >   FE_FREE                                                  $13
    9    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.36 ms | 1394 KiB | 13 Q