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 00:00:00', new DateTimeZone('EET')); var_dump($a == $b); 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 = 22, Position 2 = 24
Branch analysis from position: 22
2 jumps found. (Code = 46) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
2 jumps found. (Code = 46) Position 1 = 28, Position 2 = 38
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 40
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 40
Branch analysis from position: 38
Branch analysis from position: 27
Branch analysis from position: 24
filename:       /in/i32RO
function name:  (null)
number of ops:  41
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+00%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        INIT_FCALL                                               'var_dump'
         17        IS_EQUAL                                         ~12     !0, !1
         18        SEND_VAL                                                 ~12
         19        DO_ICALL                                                 
    8    20        TYPE_CHECK                                  256  ~14     !0
         21      > JMPZ_EX                                          ~14     ~14, ->24
    9    22    >   TYPE_CHECK                                  256  ~15     !1
         23        BOOL                                             ~14     ~15
         24    > > JMPZ_EX                                          ~14     ~14, ->27
   11    25    >   IS_EQUAL                                         ~16     !0, !1
         26        BOOL                                             ~14     ~16
         27    > > JMPZ_EX                                          ~14     ~14, ->38
   13    28    >   INIT_FCALL                                               'print_r'
         29        SEND_VAR                                                 !0
         30        SEND_VAL                                                 <true>
         31        DO_ICALL                                         $17     
         32        INIT_FCALL                                               'print_r'
         33        SEND_VAR                                                 !1
         34        SEND_VAL                                                 <true>
         35        DO_ICALL                                         $18     
         36        IS_NOT_EQUAL                                     ~19     $17, $18
         37        BOOL                                             ~14     ~19
         38    > > JMPZ                                                     ~14, ->40
   15    39    >   ECHO                                                     'Equals%2C+but+not+equals%3F'
   16    40    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.78 ms | 1400 KiB | 17 Q