3v4l.org

run code in 500+ PHP versions simultaneously
<?php $period = new DatePeriod( new DateTime('08:00:00'), new DateInterval('PT15M'), new DateTime('17:00:01') ); foreach ($period as $dt) { echo $dt->format("H:i") . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 23
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 23
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/dcdvX
function name:  (null)
number of ops:  25
compiled vars:  !0 = $period, !1 = $dt
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $2      'DatePeriod'
    4     1        NEW                                                  $3      'DateTime'
          2        SEND_VAL_EX                                                  '08%3A00%3A00'
          3        DO_FCALL                                          0          
          4        SEND_VAR_NO_REF_EX                                           $3
    5     5        NEW                                                  $5      'DateInterval'
          6        SEND_VAL_EX                                                  'PT15M'
          7        DO_FCALL                                          0          
          8        SEND_VAR_NO_REF_EX                                           $5
    6     9        NEW                                                  $7      'DateTime'
         10        SEND_VAL_EX                                                  '17%3A00%3A01'
         11        DO_FCALL                                          0          
         12        SEND_VAR_NO_REF_EX                                           $7
    3    13        DO_FCALL                                          0          
         14        ASSIGN                                                       !0, $2
    9    15      > FE_RESET_R                                           $11     !0, ->23
         16    > > FE_FETCH_R                                                   $11, !1, ->23
   10    17    >   INIT_METHOD_CALL                                             !1, 'format'
         18        SEND_VAL_EX                                                  'H%3Ai'
         19        DO_FCALL                                          0  $12     
         20        CONCAT                                               ~13     $12, '%0A'
         21        ECHO                                                         ~13
    9    22      > JMP                                                          ->16
         23    >   FE_FREE                                                      $11
   11    24      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.34 ms | 475 KiB | 7 Q