3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i < 1000; ++$i) { $tz1 = new DateTime('now', new DateTimeZone('UTC')); $tz2 = new DateTime('now', new DateTimeZone('Europe/London')); $tz1->setTimeZone(new DateTimeZone('UTC')); $tz2->setTimeZone(new DateTimeZone('UTC')); var_dump($tz1 == $tz2); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 2
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 2
Branch analysis from position: 37
Branch analysis from position: 2
filename:       /in/7Ev8X
function name:  (null)
number of ops:  38
compiled vars:  !0 = $i, !1 = $tz1, !2 = $tz2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->35
    4     2    >   NEW                                              $4      'DateTime'
          3        SEND_VAL_EX                                              'now'
          4        NEW                                              $5      'DateTimeZone'
          5        SEND_VAL_EX                                              'UTC'
          6        DO_FCALL                                      0          
          7        SEND_VAR_NO_REF_EX                                       $5
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $4
    5    10        NEW                                              $9      'DateTime'
         11        SEND_VAL_EX                                              'now'
         12        NEW                                              $10     'DateTimeZone'
         13        SEND_VAL_EX                                              'Europe%2FLondon'
         14        DO_FCALL                                      0          
         15        SEND_VAR_NO_REF_EX                                       $10
         16        DO_FCALL                                      0          
         17        ASSIGN                                                   !2, $9
    7    18        INIT_METHOD_CALL                                         !1, 'setTimeZone'
         19        NEW                                              $14     'DateTimeZone'
         20        SEND_VAL_EX                                              'UTC'
         21        DO_FCALL                                      0          
         22        SEND_VAR_NO_REF_EX                                       $14
         23        DO_FCALL                                      0          
    8    24        INIT_METHOD_CALL                                         !2, 'setTimeZone'
         25        NEW                                              $17     'DateTimeZone'
         26        SEND_VAL_EX                                              'UTC'
         27        DO_FCALL                                      0          
         28        SEND_VAR_NO_REF_EX                                       $17
         29        DO_FCALL                                      0          
   10    30        INIT_FCALL                                               'var_dump'
         31        IS_EQUAL                                         ~20     !1, !2
         32        SEND_VAL                                                 ~20
         33        DO_ICALL                                                 
    3    34        PRE_INC                                                  !0
         35    >   IS_SMALLER                                               !0, 1000
         36      > JMPNZ                                                    ~23, ->2
   11    37    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.5 ms | 1396 KiB | 15 Q