3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = (new DateTimeImmutable('today'))->setTimeZone(new DateTimeZone('UTC')); $y = (new DateTimeImmutable('today'))->setTimeZone(new DateTimeZone('Europe/Rome')); var_dump($x->setTime(10, 10, 10) == $y->setTime(12, 10, 10));
based on 5rrCp
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/6ElvY
function name:  (null)
number of ops:  35
compiled vars:  !0 = $x, !1 = $y
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NEW                                              $2      :-6
         1        SEND_VAL_EX                                              'today'
         2        DO_FCALL                                      0          
         3        INIT_METHOD_CALL                                         $2, 'setTimeZone'
         4        NEW                                              $4      :-1
         5        SEND_VAL_EX                                              'UTC'
         6        DO_FCALL                                      0          
         7        SEND_VAR_NO_REF                               0          $4
         8        DO_FCALL                                      0  $6      
         9        ASSIGN                                                   !0, $6
   4    10        NEW                                              $8      :2
        11        SEND_VAL_EX                                              'today'
        12        DO_FCALL                                      0          
        13        INIT_METHOD_CALL                                         $8, 'setTimeZone'
        14        NEW                                              $10     :7
        15        SEND_VAL_EX                                              'Europe%2FRome'
        16        DO_FCALL                                      0          
        17        SEND_VAR_NO_REF                               0          $10
        18        DO_FCALL                                      0  $12     
        19        ASSIGN                                                   !1, $12
   6    20        INIT_FCALL                                               'var_dump'
        21        INIT_METHOD_CALL                                         !0, 'setTime'
        22        SEND_VAL_EX                                              10
        23        SEND_VAL_EX                                              10
        24        SEND_VAL_EX                                              10
        25        DO_FCALL                                      0  $14     
        26        INIT_METHOD_CALL                                         !1, 'setTime'
        27        SEND_VAL_EX                                              12
        28        SEND_VAL_EX                                              10
        29        SEND_VAL_EX                                              10
        30        DO_FCALL                                      0  $15     
        31        IS_EQUAL                                         ~16     $14, $15
        32        SEND_VAL                                                 ~16
        33        DO_ICALL                                                 
        34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0