3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.68 ms | 1388 KiB | 17 Q