3v4l.org

run code in 300+ PHP versions simultaneously
<?php function TimeZones() { $timezones = array(); try { $tz = DateTimeZone::listIdentifiers(); if (is_array($tz) && count($tz) >= 1) $timezones = $tz; } catch (Exception $e) { } return $timezones; } var_dump(count(TimeZones()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pqPtP
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'timezones'
          2        DO_FCALL                                      0  $0      
          3        COUNT                                            ~1      $0
          4        SEND_VAL                                                 ~1
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function timezones:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
Branch analysis from position: 9
Found catch point at position: 12
Branch analysis from position: 12
2 jumps found. (Code = 107) Position 1 = 13, Position 2 = -2
Branch analysis from position: 13
filename:       /in/pqPtP
function name:  TimeZones
number of ops:  15
compiled vars:  !0 = $timezones, !1 = $tz, !2 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    6     1        INIT_STATIC_METHOD_CALL                                  'DateTimeZone', 'listIdentifiers'
          2        DO_FCALL                                      0  $4      
          3        ASSIGN                                                   !1, $4
    7     4        TYPE_CHECK                                  128  ~6      !1
          5      > JMPZ_EX                                          ~6      ~6, ->9
          6    >   COUNT                                            ~7      !1
          7        IS_SMALLER_OR_EQUAL                              ~8      1, ~7
          8        BOOL                                             ~6      ~8
          9    > > JMPZ                                                     ~6, ->11
    8    10    >   ASSIGN                                                   !0, !1
         11    > > JMP                                                      ->13
    9    12  E > > CATCH                                       last         'Exception'
   12    13    > > RETURN                                                   !0
   13    14*     > RETURN                                                   null

End of function timezones

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.77 ms | 1399 KiB | 16 Q