3v4l.org

run code in 300+ PHP versions simultaneously
<?php $zones_array = array(); $timestamp = time(); foreach(timezone_identifiers_list() as $key => $zone) { $zones_array[$key]['value'] = $zone; date_default_timezone_set($zone); $zones_array[$key]['label'] = 'UTC/GMT ' . date('P', $timestamp) . ' - ' . str_replace('_', ' ', $zone); } print_r($zones_array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 31
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 31
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
filename:       /in/m9sJB
function name:  (null)
number of ops:  36
compiled vars:  !0 = $zones_array, !1 = $timestamp, !2 = $zone, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'time'
          2        DO_ICALL                                         $5      
          3        ASSIGN                                                   !1, $5
    7     4        INIT_FCALL                                               'timezone_identifiers_list'
          5        DO_ICALL                                         $7      
          6      > FE_RESET_R                                       $8      $7, ->31
          7    > > FE_FETCH_R                                       ~9      $8, !2, ->31
          8    >   ASSIGN                                                   !3, ~9
    9     9        FETCH_DIM_W                                      $11     !0, !3
         10        ASSIGN_DIM                                               $11, 'value'
         11        OP_DATA                                                  !2
   10    12        INIT_FCALL                                               'date_default_timezone_set'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
   11    15        INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'P'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $16     
         19        CONCAT                                           ~17     'UTC%2FGMT+', $16
         20        CONCAT                                           ~18     ~17, '+-+'
         21        INIT_FCALL                                               'str_replace'
         22        SEND_VAL                                                 '_'
         23        SEND_VAL                                                 '+'
         24        SEND_VAR                                                 !2
         25        DO_ICALL                                         $19     
         26        CONCAT                                           ~20     ~18, $19
         27        FETCH_DIM_W                                      $14     !0, !3
         28        ASSIGN_DIM                                               $14, 'label'
         29        OP_DATA                                                  ~20
    7    30      > JMP                                                      ->7
         31    >   FE_FREE                                                  $8
   14    32        INIT_FCALL                                               'print_r'
         33        SEND_VAR                                                 !0
         34        DO_ICALL                                                 
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.32 ms | 1396 KiB | 25 Q