3v4l.org

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

Class JhDateTime: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.77 ms | 1395 KiB | 15 Q