3v4l.org

run code in 300+ PHP versions simultaneously
<?php \date_default_timezone_set('Europe/Berlin'); $dateTime = new \DateTime('2016-08-25 12:00:00', new \DateTimeZone('UTC')); \var_dump($dateTime, date('Y-m-d H:i:s', $dateTime->getTimestamp()), \date_default_timezone_get());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZDte9
function name:  (null)
number of ops:  25
compiled vars:  !0 = $dateTime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FBerlin'
          2        DO_ICALL                                                 
    4     3        NEW                                              $2      'DateTime'
          4        SEND_VAL_EX                                              '2016-08-25+12%3A00%3A00'
          5        NEW                                              $3      'DateTimeZone'
          6        SEND_VAL_EX                                              'UTC'
          7        DO_FCALL                                      0          
          8        SEND_VAR_NO_REF_EX                                       $3
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !0, $2
    5    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         15        INIT_METHOD_CALL                                         !0, 'getTimestamp'
         16        DO_FCALL                                      0  $7      
         17        SEND_VAR                                                 $7
         18        DO_ICALL                                         $8      
         19        SEND_VAR                                                 $8
         20        INIT_FCALL                                               'date_default_timezone_get'
         21        DO_ICALL                                         $9      
         22        SEND_VAR                                                 $9
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.64 ms | 1000 KiB | 17 Q