3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('Europe/Minsk'); $a = new DateTimeImmutable("2015-01-01 11:00:00"); $b = $a->setTime(10, 0)->setTimezone(new DateTimeZone("03:00")); var_dump($a > $b); $a->getTimestamp(); $b->getTimestamp(); var_dump($a > $b);
based on 6QUKu
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G4lQF
function name:  (null)
number of ops:  31
compiled vars:  !0 = $a, !1 = $b
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
         1        SEND_VAL                                                 'Europe%2FMinsk'
         2        DO_ICALL                                                 
   5     3        NEW                                              $3      :-3
         4        SEND_VAL_EX                                              '2015-01-01+11%3A00%3A00'
         5        DO_FCALL                                      0          
         6        ASSIGN                                                   !0, $3
   7     7        INIT_METHOD_CALL                                         !0, 'setTime'
         8        SEND_VAL_EX                                              10
         9        SEND_VAL_EX                                              0
        10        DO_FCALL                                      0  $6      
        11        INIT_METHOD_CALL                                         $6, 'setTimezone'
        12        NEW                                              $7      :6
        13        SEND_VAL_EX                                              '03%3A00'
        14        DO_FCALL                                      0          
        15        SEND_VAR_NO_REF_EX                                       $7
        16        DO_FCALL                                      0  $9      
        17        ASSIGN                                                   !1, $9
   9    18        INIT_FCALL                                               'var_dump'
        19        IS_SMALLER                                       ~11     !1, !0
        20        SEND_VAL                                                 ~11
        21        DO_ICALL                                                 
  10    22        INIT_METHOD_CALL                                         !0, 'getTimestamp'
        23        DO_FCALL                                      0          
  11    24        INIT_METHOD_CALL                                         !1, 'getTimestamp'
        25        DO_FCALL                                      0          
  12    26        INIT_FCALL                                               'var_dump'
        27        IS_SMALLER                                       ~15     !1, !0
        28        SEND_VAL                                                 ~15
        29        DO_ICALL                                                 
        30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0