3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2013-10-01'); $end = new DateTime('2013-11-01'); $period = new DatePeriod($start, new DateInterval('P1D'), $end); var_dump($period); foreach ($period as $p) { var_dump($p); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 21, Position 2 = 26
Branch analysis from position: 21
2 jumps found. (Code = 78) Position 1 = 22, Position 2 = 26
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/lv5PO
function name:  (null)
number of ops:  28
compiled vars:  !0 = $start, !1 = $end, !2 = $period, !3 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'DateTime'
          1        SEND_VAL_EX                                              '2013-10-01'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $4
    4     4        NEW                                              $7      'DateTime'
          5        SEND_VAL_EX                                              '2013-11-01'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $7
    5     8        NEW                                              $10     'DatePeriod'
          9        SEND_VAR_EX                                              !0
         10        NEW                                              $11     'DateInterval'
         11        SEND_VAL_EX                                              'P1D'
         12        DO_FCALL                                      0          
         13        SEND_VAR_NO_REF_EX                                       $11
         14        SEND_VAR_EX                                              !1
         15        DO_FCALL                                      0          
         16        ASSIGN                                                   !2, $10
    7    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                                 
    9    20      > FE_RESET_R                                       $16     !2, ->26
         21    > > FE_FETCH_R                                               $16, !3, ->26
   10    22    >   INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                                 
    9    25      > JMP                                                      ->21
         26    >   FE_FREE                                                  $16
   11    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.1 ms | 1387 KiB | 15 Q