3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timezoneOffset = "+05:30"; $offsetSeconds = DateTime::createFromFormat('P', $timezoneOffset)->format('Z'); var_dump(timezone_name_from_abbr('', $offsetSeconds, 0));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b6YZH
function name:  (null)
number of ops:  18
compiled vars:  !0 = $timezoneOffset, !1 = $offsetSeconds
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2B05%3A30'
    4     1        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          2        SEND_VAL                                                 'P'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $3      
          5        INIT_METHOD_CALL                                         $3, 'format'
          6        SEND_VAL_EX                                              'Z'
          7        DO_FCALL                                      0  $4      
          8        ASSIGN                                                   !1, $4
    5     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'timezone_name_from_abbr'
         11        SEND_VAL                                                 ''
         12        SEND_VAR                                                 !1
         13        SEND_VAL                                                 0
         14        DO_ICALL                                         $6      
         15        SEND_VAR                                                 $6
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.31 ms | 1386 KiB | 17 Q