3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d1=new DateTimeImmutable('03/08/2015 1:59am GMT-05:00'); echo $d1->format(DateTime::ISO8601)."\n"; //$d2 = $d1->modify('+0 hours'); echo $d2->format(DateTime::ISO8601)."\n"; echo '--\n'; $d1=new DateTimeImmutable('03/08/2015 1:59am GMT-05:00'); echo $d1->format(DateTime::ISO8601)."\n"; $d2 = clone $d1; echo $d2->format(DateTime::ISO8601)."\n";
based on hS2vu
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/O980R
function name:  (null)
number of ops:  32
compiled vars:  !0 = $d1, !1 = $d2
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NEW                                              $2      :-6
         1        SEND_VAL_EX                                              '03%2F08%2F2015+1%3A59am+GMT-05%3A00'
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $2
   4     4        INIT_METHOD_CALL                                         !0, 'format'
         5        SEND_VAL_EX                                              'Y-m-d%5CTH%3Ai%3AsO'
         6        DO_FCALL                                      0  $5      
         7        CONCAT                                           ~6      $5, '%0A'
         8        ECHO                                                     ~6
   7     9        INIT_METHOD_CALL                                         !1, 'format'
        10        SEND_VAL_EX                                              'Y-m-d%5CTH%3Ai%3AsO'
        11        DO_FCALL                                      0  $7      
        12        CONCAT                                           ~8      $7, '%0A'
        13        ECHO                                                     ~8
   9    14        ECHO                                                     '--%5Cn'
  11    15        NEW                                              $9      :6
        16        SEND_VAL_EX                                              '03%2F08%2F2015+1%3A59am+GMT-05%3A00'
        17        DO_FCALL                                      0          
        18        ASSIGN                                                   !0, $9
  12    19        INIT_METHOD_CALL                                         !0, 'format'
        20        SEND_VAL_EX                                              'Y-m-d%5CTH%3Ai%3AsO'
        21        DO_FCALL                                      0  $12     
        22        CONCAT                                           ~13     $12, '%0A'
        23        ECHO                                                     ~13
  14    24        CLONE                                            $14     !0
        25        ASSIGN                                                   !1, $14
  15    26        INIT_METHOD_CALL                                         !1, 'format'
        27        SEND_VAL_EX                                              'Y-m-d%5CTH%3Ai%3AsO'
        28        DO_FCALL                                      0  $16     
        29        CONCAT                                           ~17     $16, '%0A'
        30        ECHO                                                     ~17
        31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.1.0