3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.51 ms | 1399 KiB | 15 Q