3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d1 = new DateTime('1970-01-01', new DateTimeZone('GMT')); $d2 = new DateTime('1970-01-01', new DateTimeZone('GMT')); $d3 = new DateTime('1980-01-01', new DateTimeZone('GMT')); print '$d1 === $d2'.($d1 === $d2 ? 'true' : 'false')."\n"; print '$d1 == $d2'.($d1 == $d2 ? 'true' : 'false')."\n"; print '$d1 == $d3'.($d1 === $d3 ? 'true' : 'false')."\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 36
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 43) Position 1 = 42, Position 2 = 44
Branch analysis from position: 42
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
2 jumps found. (Code = 43) Position 1 = 42, Position 2 = 44
Branch analysis from position: 42
Branch analysis from position: 44
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 36
Branch analysis from position: 34
Branch analysis from position: 36
filename:       /in/FRS3E
function name:  (null)
number of ops:  49
compiled vars:  !0 = $d1, !1 = $d2, !2 = $d3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'DateTime'
          1        SEND_VAL_EX                                              '1970-01-01'
          2        NEW                                              $4      'DateTimeZone'
          3        SEND_VAL_EX                                              'GMT'
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $4
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $3
    4     8        NEW                                              $8      'DateTime'
          9        SEND_VAL_EX                                              '1970-01-01'
         10        NEW                                              $9      'DateTimeZone'
         11        SEND_VAL_EX                                              'GMT'
         12        DO_FCALL                                      0          
         13        SEND_VAR_NO_REF_EX                                       $9
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !1, $8
    5    16        NEW                                              $13     'DateTime'
         17        SEND_VAL_EX                                              '1980-01-01'
         18        NEW                                              $14     'DateTimeZone'
         19        SEND_VAL_EX                                              'GMT'
         20        DO_FCALL                                      0          
         21        SEND_VAR_NO_REF_EX                                       $14
         22        DO_FCALL                                      0          
         23        ASSIGN                                                   !2, $13
    7    24        IS_IDENTICAL                                             !0, !1
         25      > JMPZ                                                     ~18, ->28
         26    >   QM_ASSIGN                                        ~19     'true'
         27      > JMP                                                      ->29
         28    >   QM_ASSIGN                                        ~19     'false'
         29    >   CONCAT                                           ~20     '%24d1+%3D%3D%3D+%24d2', ~19
         30        CONCAT                                           ~21     ~20, '%0A'
         31        ECHO                                                     ~21
    8    32        IS_EQUAL                                                 !0, !1
         33      > JMPZ                                                     ~22, ->36
         34    >   QM_ASSIGN                                        ~23     'true'
         35      > JMP                                                      ->37
         36    >   QM_ASSIGN                                        ~23     'false'
         37    >   CONCAT                                           ~24     '%24d1+%3D%3D+%24d2', ~23
         38        CONCAT                                           ~25     ~24, '%0A'
         39        ECHO                                                     ~25
    9    40        IS_IDENTICAL                                             !0, !2
         41      > JMPZ                                                     ~26, ->44
         42    >   QM_ASSIGN                                        ~27     'true'
         43      > JMP                                                      ->45
         44    >   QM_ASSIGN                                        ~27     'false'
         45    >   CONCAT                                           ~28     '%24d1+%3D%3D+%24d3', ~27
         46        CONCAT                                           ~29     ~28, '%0A'
         47        ECHO                                                     ~29
         48      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.86 ms | 1399 KiB | 13 Q