3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! var_dump((new DateTime('1970-02-01T18:00:00Z', new DateTimeZone('Europe/London')))->setTimezone(new DateTimeZone('UTC'))->format('Y-m-d\\TH:i:s\\Z')); var_dump((new DateTime('1970-02-01T18:00:00Z'))->setTimezone(new DateTimeZone('UTC'))->format('Y-m-d\\TH:i:s\\Z'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Mtf6U
function name:  (null)
number of ops:  35
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'DateTime'
          2        SEND_VAL_EX                                              '1970-02-01T18%3A00%3A00Z'
          3        NEW                                              $1      'DateTimeZone'
          4        SEND_VAL_EX                                              'Europe%2FLondon'
          5        DO_FCALL                                      0          
          6        SEND_VAR_NO_REF_EX                                       $1
          7        DO_FCALL                                      0          
          8        INIT_METHOD_CALL                                         $0, 'setTimezone'
          9        NEW                                              $4      'DateTimeZone'
         10        SEND_VAL_EX                                              'UTC'
         11        DO_FCALL                                      0          
         12        SEND_VAR_NO_REF_EX                                       $4
         13        DO_FCALL                                      0  $6      
         14        INIT_METHOD_CALL                                         $6, 'format'
         15        SEND_VAL_EX                                              'Y-m-d%5CTH%3Ai%3As%5CZ'
         16        DO_FCALL                                      0  $7      
         17        SEND_VAR                                                 $7
         18        DO_ICALL                                                 
    5    19        INIT_FCALL                                               'var_dump'
         20        NEW                                              $9      'DateTime'
         21        SEND_VAL_EX                                              '1970-02-01T18%3A00%3A00Z'
         22        DO_FCALL                                      0          
         23        INIT_METHOD_CALL                                         $9, 'setTimezone'
         24        NEW                                              $11     'DateTimeZone'
         25        SEND_VAL_EX                                              'UTC'
         26        DO_FCALL                                      0          
         27        SEND_VAR_NO_REF_EX                                       $11
         28        DO_FCALL                                      0  $13     
         29        INIT_METHOD_CALL                                         $13, 'format'
         30        SEND_VAL_EX                                              'Y-m-d%5CTH%3Ai%3As%5CZ'
         31        DO_FCALL                                      0  $14     
         32        SEND_VAR                                                 $14
         33        DO_ICALL                                                 
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.17 ms | 1396 KiB | 15 Q