3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Moscow'); $dateTimeZone = new DateTimeZone('Asia/Taipei'); var_dump($dateTimeZone->getOffset(new DateTime())); var_dump(timezone_name_from_abbr("", 28800, 0));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sUZCm
function name:  (null)
number of ops:  24
compiled vars:  !0 = $dateTimeZone
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FMoscow'
          2        DO_ICALL                                                 
    4     3        NEW                                              $2      'DateTimeZone'
          4        SEND_VAL_EX                                              'Asia%2FTaipei'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
    5     7        INIT_FCALL                                               'var_dump'
          8        INIT_METHOD_CALL                                         !0, 'getOffset'
          9        NEW                                              $5      'DateTime'
         10        DO_FCALL                                      0          
         11        SEND_VAR_NO_REF_EX                                       $5
         12        DO_FCALL                                      0  $7      
         13        SEND_VAR                                                 $7
         14        DO_ICALL                                                 
    7    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'timezone_name_from_abbr'
         17        SEND_VAL                                                 ''
         18        SEND_VAL                                                 28800
         19        SEND_VAL                                                 0
         20        DO_ICALL                                         $9      
         21        SEND_VAR                                                 $9
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.97 ms | 1395 KiB | 19 Q