3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(count(\DateTimeZone::listIdentifiers())); var_dump(count(timezone_identifiers_list())); $zonelist = timezone_identifiers_list(); $zones = array(); foreach ($zonelist as $zone) { if (preg_match('!^((Africa|America|Antarctica|Arctic|Asia|Atlantic|Australia|Europe|Indian|Pacific)/|UTC$)!', $zone)) { $zones[$zone] = $zone; } } var_dump(count($zones));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 26
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 26
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 25
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 25
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/nYJ2R
function name:  (null)
number of ops:  32
compiled vars:  !0 = $zonelist, !1 = $zones, !2 = $zone
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_STATIC_METHOD_CALL                                  'DateTimeZone', 'listIdentifiers'
          2        DO_FCALL                                      0  $3      
          3        COUNT                                            ~4      $3
          4        SEND_VAL                                                 ~4
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'timezone_identifiers_list'
          8        DO_ICALL                                         $6      
          9        COUNT                                            ~7      $6
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'timezone_identifiers_list'
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !0, $9
    7    15        ASSIGN                                                   !1, <array>
    8    16      > FE_RESET_R                                       $12     !0, ->26
         17    > > FE_FETCH_R                                               $12, !2, ->26
    9    18    >   INIT_FCALL                                               'preg_match'
         19        SEND_VAL                                                 '%21%5E%28%28Africa%7CAmerica%7CAntarctica%7CArctic%7CAsia%7CAtlantic%7CAustralia%7CEurope%7CIndian%7CPacific%29%2F%7CUTC%24%29%21'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                         $13     
         22      > JMPZ                                                     $13, ->25
   10    23    >   ASSIGN_DIM                                               !1, !2
         24        OP_DATA                                                  !2
    8    25    > > JMP                                                      ->17
         26    >   FE_FREE                                                  $12
   13    27        INIT_FCALL                                               'var_dump'
         28        COUNT                                            ~15     !1
         29        SEND_VAL                                                 ~15
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.23 ms | 1013 KiB | 16 Q