3v4l.org

run code in 500+ 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 = 23
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 23
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 22
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/nYJ2R
function name:  (null)
number of ops:  29
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, ->23
         17    > > FE_FETCH_R                                                   $12, !2, ->23
    9    18    >   FRAMELESS_ICALL_2                preg_match          ~13     '%21%5E%28%28Africa%7CAmerica%7CAntarctica%7CArctic%7CAsia%7CAtlantic%7CAustralia%7CEurope%7CIndian%7CPacific%29%2F%7CUTC%24%29%21', !2
         19      > JMPZ                                                         ~13, ->22
   10    20    >   ASSIGN_DIM                                                   !1, !2
         21        OP_DATA                                                      !2
    8    22    > > JMP                                                          ->17
         23    >   FE_FREE                                                      $12
   13    24        INIT_FCALL                                                   'var_dump'
         25        COUNT                                                ~15     !1
         26        SEND_VAL                                                     ~15
         27        DO_ICALL                                                     
         28      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
154.42 ms | 3329 KiB | 15 Q