3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.82 ms | 1394 KiB | 13 Q