3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Prague'); $date = new DateTime('2010-04-25 02:24:16+12:00'); $date->setTimeZone(new \DateTimeZone(date_default_timezone_get())); echo $date->format('H:m:i') . "<br>"; $date = new DateTime('2010-04-25 02:24:16+12:00'); echo $date->format('H:m:i') . "<br>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dl1hE
function name:  (null)
number of ops:  30
compiled vars:  !0 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FPrague'
          2        DO_ICALL                                                 
    4     3        NEW                                              $2      'DateTime'
          4        SEND_VAL_EX                                              '2010-04-25+02%3A24%3A16%2B12%3A00'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
    5     7        INIT_METHOD_CALL                                         !0, 'setTimeZone'
          8        NEW                                              $5      'DateTimeZone'
          9        INIT_FCALL                                               'date_default_timezone_get'
         10        DO_ICALL                                         $6      
         11        SEND_VAR_NO_REF_EX                                       $6
         12        DO_FCALL                                      0          
         13        SEND_VAR_NO_REF_EX                                       $5
         14        DO_FCALL                                      0          
    7    15        INIT_METHOD_CALL                                         !0, 'format'
         16        SEND_VAL_EX                                              'H%3Am%3Ai'
         17        DO_FCALL                                      0  $9      
         18        CONCAT                                           ~10     $9, '%3Cbr%3E'
         19        ECHO                                                     ~10
   10    20        NEW                                              $11     'DateTime'
         21        SEND_VAL_EX                                              '2010-04-25+02%3A24%3A16%2B12%3A00'
         22        DO_FCALL                                      0          
         23        ASSIGN                                                   !0, $11
   11    24        INIT_METHOD_CALL                                         !0, 'format'
         25        SEND_VAL_EX                                              'H%3Am%3Ai'
         26        DO_FCALL                                      0  $14     
         27        CONCAT                                           ~15     $14, '%3Cbr%3E'
         28        ECHO                                                     ~15
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.45 ms | 1395 KiB | 17 Q