3v4l.org

run code in 500+ PHP versions simultaneously
<?php $d1 = new DateTime('2008-01-01 12:00:00 +02:00'); $d2 = new DateTime('2008-01-01 12:00:00 UTC'); $d2->setTimeZone($d1->getTimeZone());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mlZX7
function name:  (null)
number of ops:  14
compiled vars:  !0 = $d1, !1 = $d2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   NEW                                                  $2      'DateTime'
          1        SEND_VAL_EX                                                  '2008-01-01+12%3A00%3A00+%2B02%3A00'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $2
    3     4        NEW                                                  $5      'DateTime'
          5        SEND_VAL_EX                                                  '2008-01-01+12%3A00%3A00+UTC'
          6        DO_FCALL                                          0          
          7        ASSIGN                                                       !1, $5
    5     8        INIT_METHOD_CALL                                             !1, 'setTimeZone'
          9        INIT_METHOD_CALL                                             !0, 'getTimeZone'
         10        DO_FCALL                                          0  $8      
         11        SEND_VAR_NO_REF_EX                                           $8
         12        DO_FCALL                                          0          
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.8 ms | 3242 KiB | 13 Q