3v4l.org

run code in 500+ PHP versions simultaneously
<?php $firstDayJuly2016 = new DateTime("first day of July 2016"); // The following returns // object(DateTime) // public 'date' => string '2016-07-02 00:00:00' (length=19) var_dump($firstDayJuly2016); $fourthDayJuly2016 = new DateTime("July 2016 +4 days"); // The following returns // object(DateTime) // public 'date' => string '2016-07-05 00:00:00' (length=19) var_dump($fourthDayJuly2016);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pSsLn
function name:  (null)
number of ops:  15
compiled vars:  !0 = $firstDayJuly2016, !1 = $fourthDayJuly2016
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $2      'DateTime'
          1        SEND_VAL_EX                                                  'first+day+of+July+2016'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $2
    9     4        INIT_FCALL                                                   'var_dump'
          5        SEND_VAR                                                     !0
          6        DO_ICALL                                                     
   11     7        NEW                                                  $6      'DateTime'
          8        SEND_VAL_EX                                                  'July+2016+%2B4+days'
          9        DO_FCALL                                          0          
         10        ASSIGN                                                       !1, $6
   17    11        INIT_FCALL                                                   'var_dump'
         12        SEND_VAR                                                     !1
         13        DO_ICALL                                                     
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
127.27 ms | 476 KiB | 8 Q