3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime( '2100-06-02T00:00:00', new DateTimeZone( 'Australia/Sydney' ) ); $date->setTimezone( new DateTimeZone( 'UTC' ) ); $date2010 = new DateTime( '2010-06-02T00:00:00', new DateTimeZone( 'Australia/Sydney' ) ); $date2010->setTimezone( new DateTimeZone( 'UTC' ) ); var_dump( $date, $date2010 );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6IAEi
function name:  (null)
number of ops:  33
compiled vars:  !0 = $date, !1 = $date2010
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '2100-06-02T00%3A00%3A00'
          2        NEW                                              $3      'DateTimeZone'
          3        SEND_VAL_EX                                              'Australia%2FSydney'
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $3
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $2
    4     8        INIT_METHOD_CALL                                         !0, 'setTimezone'
          9        NEW                                              $7      'DateTimeZone'
         10        SEND_VAL_EX                                              'UTC'
         11        DO_FCALL                                      0          
         12        SEND_VAR_NO_REF_EX                                       $7
         13        DO_FCALL                                      0          
    6    14        NEW                                              $10     'DateTime'
         15        SEND_VAL_EX                                              '2010-06-02T00%3A00%3A00'
         16        NEW                                              $11     'DateTimeZone'
         17        SEND_VAL_EX                                              'Australia%2FSydney'
         18        DO_FCALL                                      0          
         19        SEND_VAR_NO_REF_EX                                       $11
         20        DO_FCALL                                      0          
         21        ASSIGN                                                   !1, $10
    7    22        INIT_METHOD_CALL                                         !1, 'setTimezone'
         23        NEW                                              $15     'DateTimeZone'
         24        SEND_VAL_EX                                              'UTC'
         25        DO_FCALL                                      0          
         26        SEND_VAR_NO_REF_EX                                       $15
         27        DO_FCALL                                      0          
    9    28        INIT_FCALL                                               'var_dump'
         29        SEND_VAR                                                 !0
         30        SEND_VAR                                                 !1
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
124.69 ms | 1446 KiB | 14 Q