3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $m = new \DateTime('today midnigth'); var_dump($m);die; $startDate = new \DateTime('-1 day'); $finishDate = new \DateTime('+4 day'); $period = new \DatePeriod($startDate, new \DateInterval('P1D'), $finishDate); var_dump($period->start);
based on 5RhPq
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/I0S1u
function name:  (null)
number of ops:  30
compiled vars:  !0 = $m, !1 = $startDate, !2 = $finishDate, !3 = $period
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NEW                                              $4      :-6
         1        SEND_VAL_EX                                              'today+midnigth'
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $4
   4     4        INIT_FCALL                                               'var_dump'
         5        SEND_VAR                                                 !0
         6        DO_ICALL                                                 
         7      > EXIT                                                     
   6     8*       NEW                                              $8      :-2
         9*       SEND_VAL_EX                                              '-1+day'
        10*       DO_FCALL                                      0          
        11*       ASSIGN                                                   !1, $8
   7    12*       NEW                                              $11     :1
        13*       SEND_VAL_EX                                              '%2B4+day'
        14*       DO_FCALL                                      0          
        15*       ASSIGN                                                   !2, $11
   9    16*       NEW                                              $14     :4
        17*       SEND_VAR_EX                                              !1
        18*       NEW                                              $15     :6
        19*       SEND_VAL_EX                                              'P1D'
        20*       DO_FCALL                                      0          
        21*       SEND_VAR_NO_REF                               0          $15
        22*       SEND_VAR_EX                                              !2
        23*       DO_FCALL                                      0          
        24*       ASSIGN                                                   !3, $14
  10    25*       INIT_FCALL                                               'var_dump'
        26*       FETCH_OBJ_R                                      $19     !3, 'start'
        27*       SEND_VAR                                                 $19
        28*       DO_ICALL                                                 
        29*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0