3v4l.org

run code in 300+ PHP versions simultaneously
<?php $local = new DateTime(); $local->setTimeZone(new DateTimeZone('America/Los_Angeles')); $gmt = new DateTime(); $gmt->setTimeZone(new DateTimeZone('UTC')); var_dump($local === $gmt);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4qWXr
function name:  (null)
number of ops:  23
compiled vars:  !0 = $local, !1 = $gmt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        INIT_METHOD_CALL                                         !0, 'setTimeZone'
          4        NEW                                              $5      'DateTimeZone'
          5        SEND_VAL_EX                                              'America%2FLos_Angeles'
          6        DO_FCALL                                      0          
          7        SEND_VAR_NO_REF_EX                                       $5
          8        DO_FCALL                                      0          
    4     9        NEW                                              $8      'DateTime'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !1, $8
    5    12        INIT_METHOD_CALL                                         !1, 'setTimeZone'
         13        NEW                                              $11     'DateTimeZone'
         14        SEND_VAL_EX                                              'UTC'
         15        DO_FCALL                                      0          
         16        SEND_VAR_NO_REF_EX                                       $11
         17        DO_FCALL                                      0          
    6    18        INIT_FCALL                                               'var_dump'
         19        IS_IDENTICAL                                     ~14     !0, !1
         20        SEND_VAL                                                 ~14
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.37 ms | 1386 KiB | 15 Q