3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTimeImmutable('now', new DateTimeZone('Pacific/Midway')); $date2 = new DateTimeImmutable('now', new DateTimeZone('US/Samoa')); echo $date->format('Y-m-d H:i:s') . PHP_EOL; echo $date2->format('Y-m-d H:i:s') . PHP_EOL; var_dump($date == $date2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TCN3V
function name:  (null)
number of ops:  31
compiled vars:  !0 = $date, !1 = $date2
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NEW                                              $2      :57
         1        SEND_VAL_EX                                              'now'
         2        NEW                                              $3      :56
         3        SEND_VAL_EX                                              'Pacific%2FMidway'
         4        DO_FCALL                                      0          
         5        SEND_VAR_NO_REF_EX                                       $3
         6        DO_FCALL                                      0          
         7        ASSIGN                                                   !0, $2
   4     8        NEW                                              $7      :47
         9        SEND_VAL_EX                                              'now'
        10        NEW                                              $8      :46
        11        SEND_VAL_EX                                              'US%2FSamoa'
        12        DO_FCALL                                      0          
        13        SEND_VAR_NO_REF_EX                                       $8
        14        DO_FCALL                                      0          
        15        ASSIGN                                                   !1, $7
   6    16        INIT_METHOD_CALL                                         !0, 'format'
        17        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
        18        DO_FCALL                                      0  $12     
        19        CONCAT                                           ~13     $12, '%0A'
        20        ECHO                                                     ~13
   7    21        INIT_METHOD_CALL                                         !1, 'format'
        22        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
        23        DO_FCALL                                      0  $14     
        24        CONCAT                                           ~15     $14, '%0A'
        25        ECHO                                                     ~15
   9    26        INIT_FCALL                                               'var_dump'
        27        IS_NOT_EQUAL                                     ~16     !0, !1
        28        SEND_VAL                                                 ~16
        29        DO_ICALL                                                 
        30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
14.59 ms | 462 KiB | 7 Q