3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new DateTime('2015-01-01 00:00:00', new DateTimeZone('UTC')); $b = new DateTime('2015-01-01 02:00:00', new DateTimeZone('EET')); if (is_object($a) && is_object($b) && $a == $b && print_r($a, true) != print_r($b, true)) { echo 'Equals, but not equals?'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
2 jumps found. (Code = 46) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
2 jumps found. (Code = 46) Position 1 = 24, Position 2 = 34
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 35, Position 2 = 36
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
Branch analysis from position: 34
Branch analysis from position: 23
Branch analysis from position: 20
filename:       /in/hbR5Q
function name:  (null)
number of ops:  37
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '2015-01-01+00%3A00%3A00'
          2        NEW                                              $3      'DateTimeZone'
          3        SEND_VAL_EX                                              'UTC'
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $3
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $2
    4     8        NEW                                              $7      'DateTime'
          9        SEND_VAL_EX                                              '2015-01-01+02%3A00%3A00'
         10        NEW                                              $8      'DateTimeZone'
         11        SEND_VAL_EX                                              'EET'
         12        DO_FCALL                                      0          
         13        SEND_VAR_NO_REF_EX                                       $8
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !1, $7
    6    16        TYPE_CHECK                                  256  ~12     !0
         17      > JMPZ_EX                                          ~12     ~12, ->20
    7    18    >   TYPE_CHECK                                  256  ~13     !1
         19        BOOL                                             ~12     ~13
         20    > > JMPZ_EX                                          ~12     ~12, ->23
    9    21    >   IS_EQUAL                                         ~14     !0, !1
         22        BOOL                                             ~12     ~14
         23    > > JMPZ_EX                                          ~12     ~12, ->34
   11    24    >   INIT_FCALL                                               'print_r'
         25        SEND_VAR                                                 !0
         26        SEND_VAL                                                 <true>
         27        DO_ICALL                                         $15     
         28        INIT_FCALL                                               'print_r'
         29        SEND_VAR                                                 !1
         30        SEND_VAL                                                 <true>
         31        DO_ICALL                                         $16     
         32        IS_NOT_EQUAL                                     ~17     $15, $16
         33        BOOL                                             ~12     ~17
         34    > > JMPZ                                                     ~12, ->36
   13    35    >   ECHO                                                     'Equals%2C+but+not+equals%3F'
   14    36    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.4 ms | 1396 KiB | 15 Q