3v4l.org

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

Generated using Vulcan Logic Dumper, using php 7.3.0