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-01 18:00:00', new DateTimeZone('Europe/Moscow')))->setTimezone(new DateTimeZone('UTC'))->format('Y-m-d\\TH:i:s\\Z')); //var_dump((new DateTime('1970-02-01 18:00:00', new DateTimeZone('Europe/London')))->setTimezone(new DateTimeZone('UTC'))->format('Y-m-d\\TH:i:s\\Z')); var_dump(new DateTime('1970-02-01 18:00:00', new DateTimeZone('Europe/London'))); var_dump(new DateTime('1970-02-01T18:00:00Z', new DateTimeZone('Europe/London')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MZ6GD
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'DateTime'
          2        SEND_VAL_EX                                              '1970-02-01+18%3A00%3A00'
          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        SEND_VAR                                                 $0
          9        DO_ICALL                                                 
    8    10        INIT_FCALL                                               'var_dump'
         11        NEW                                              $5      'DateTime'
         12        SEND_VAL_EX                                              '1970-02-01T18%3A00%3A00Z'
         13        NEW                                              $6      'DateTimeZone'
         14        SEND_VAL_EX                                              'Europe%2FLondon'
         15        DO_FCALL                                      0          
         16        SEND_VAR_NO_REF_EX                                       $6
         17        DO_FCALL                                      0          
         18        SEND_VAR                                                 $5
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.08 ms | 1395 KiB | 15 Q