3v4l.org

run code in 300+ PHP versions simultaneously
<?php $period = new DatePeriod( new DateTime('2018-12-15'), new DateInterval('P1D'), new DateTime('2018-12-31'), DatePeriod::INCLUDE_END_DATE ); foreach ($period as $date) { $years[$date->format('Y')][$date->format('m')][$date->format('d')] = range(0, 23); } var_export($years);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 36
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 36
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
filename:       /in/R2EYF
function name:  (null)
number of ops:  41
compiled vars:  !0 = $period, !1 = $date, !2 = $years
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'DatePeriod'
    4     1        NEW                                              $4      'DateTime'
          2        SEND_VAL_EX                                              '2018-12-15'
          3        DO_FCALL                                      0          
          4        SEND_VAR_NO_REF_EX                                       $4
    5     5        NEW                                              $6      'DateInterval'
          6        SEND_VAL_EX                                              'P1D'
          7        DO_FCALL                                      0          
          8        SEND_VAR_NO_REF_EX                                       $6
    6     9        NEW                                              $8      'DateTime'
         10        SEND_VAL_EX                                              '2018-12-31'
         11        DO_FCALL                                      0          
         12        SEND_VAR_NO_REF_EX                                       $8
    7    13        SEND_VAL_EX                                              2
    3    14        DO_FCALL                                      0          
         15        ASSIGN                                                   !0, $3
   10    16      > FE_RESET_R                                       $12     !0, ->36
         17    > > FE_FETCH_R                                               $12, !1, ->36
   11    18    >   INIT_METHOD_CALL                                         !1, 'format'
         19        SEND_VAL_EX                                              'Y'
         20        DO_FCALL                                      0  $13     
         21        INIT_METHOD_CALL                                         !1, 'format'
         22        SEND_VAL_EX                                              'm'
         23        DO_FCALL                                      0  $15     
         24        INIT_METHOD_CALL                                         !1, 'format'
         25        SEND_VAL_EX                                              'd'
         26        DO_FCALL                                      0  $17     
         27        INIT_FCALL                                               'range'
         28        SEND_VAL                                                 0
         29        SEND_VAL                                                 23
         30        DO_ICALL                                         $19     
         31        FETCH_DIM_W                                      $14     !2, $13
         32        FETCH_DIM_W                                      $16     $14, $15
         33        ASSIGN_DIM                                               $16, $17
         34        OP_DATA                                                  $19
   10    35      > JMP                                                      ->17
         36    >   FE_FREE                                                  $12
   13    37        INIT_FCALL                                               'var_export'
         38        SEND_VAR                                                 !2
         39        DO_ICALL                                                 
         40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.84 ms | 1442 KiB | 15 Q