3v4l.org

run code in 500+ PHP versions simultaneously
<?php date_default_timezone_set('UTC'); foreach (['CEST', 'CET', 'Europe/Amsterdam'] as $tzIdentifier) { $tz = new DateTimeZone($tzIdentifier); var_dump([$tzIdentifier, $tz->getName(), $tz->getOffset(new DateTime('2014-05-19 11:30:00')), $tz->getLocation()]); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 27
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 27
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/Ui5ab
function name:  (null)
number of ops:  29
compiled vars:  !0 = $tzIdentifier, !1 = $tz
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'date_default_timezone_set'
          1        SEND_VAL                                                     'UTC'
          2        DO_ICALL                                                     
    5     3      > FE_RESET_R                                           $3      <array>, ->27
          4    > > FE_FETCH_R                                                   $3, !0, ->27
    7     5    >   NEW                                                  $4      'DateTimeZone'
          6        SEND_VAR_EX                                                  !0
          7        DO_FCALL                                          0          
          8        ASSIGN                                                       !1, $4
    8     9        INIT_FCALL                                                   'var_dump'
         10        INIT_ARRAY                                           ~7      !0
         11        INIT_METHOD_CALL                                             !1, 'getName'
         12        DO_FCALL                                          0  $8      
         13        ADD_ARRAY_ELEMENT                                    ~7      $8
         14        INIT_METHOD_CALL                                             !1, 'getOffset'
         15        NEW                                                  $9      'DateTime'
         16        SEND_VAL_EX                                                  '2014-05-19+11%3A30%3A00'
         17        DO_FCALL                                          0          
         18        SEND_VAR_NO_REF_EX                                           $9
         19        DO_FCALL                                          0  $11     
         20        ADD_ARRAY_ELEMENT                                    ~7      $11
         21        INIT_METHOD_CALL                                             !1, 'getLocation'
         22        DO_FCALL                                          0  $12     
         23        ADD_ARRAY_ELEMENT                                    ~7      $12
         24        SEND_VAL                                                     ~7
         25        DO_ICALL                                                     
    5    26      > JMP                                                          ->4
         27    >   FE_FREE                                                      $3
    9    28      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
188.36 ms | 3011 KiB | 15 Q