3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new \DateTime('2003-01-2800:00:00'); var_dump($start); $start = new \DateTime('2003-01-28 00:00:00'); var_dump($start); $start = new \DateTime('2003-01-28'); var_dump($start);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RgG0F
function name:  (null)
number of ops:  22
compiled vars:  !0 = $start
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'DateTime'
          1        SEND_VAL_EX                                              '2003-01-2800%3A00%3A00'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    3     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    5     7        NEW                                              $5      'DateTime'
          8        SEND_VAL_EX                                              '2003-01-28+00%3A00%3A00'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !0, $5
    6    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    8    14        NEW                                              $9      'DateTime'
         15        SEND_VAL_EX                                              '2003-01-28'
         16        DO_FCALL                                      0          
         17        ASSIGN                                                   !0, $9
    9    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.86 ms | 1395 KiB | 15 Q