3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (\DateTimeZone::listIdentifiers(\DateTimeZone::ALL_WITH_BC) as $tz) { try { new \DateTimeZone($tz); if (preg_match('{\AEtc/GMT[+-]\d+\z}', $tz)) { echo "OK: $tz", PHP_EOL; } } catch (\Throwable $ex) { echo "FAIL: $tz", PHP_EOL; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 25
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 25
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 18
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 18
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
Found catch point at position: 19
Branch analysis from position: 19
2 jumps found. (Code = 107) Position 1 = 20, Position 2 = -2
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
filename:       /in/HMcFD
function name:  (null)
number of ops:  27
compiled vars:  !0 = $tz, !1 = $ex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_STATIC_METHOD_CALL                                  'DateTimeZone', 'listIdentifiers'
          1        SEND_VAL                                                 4095
          2        DO_FCALL                                      0  $2      
          3      > FE_RESET_R                                       $3      $2, ->25
          4    > > FE_FETCH_R                                               $3, !0, ->25
    5     5    >   NEW                                              $4      'DateTimeZone'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
          8        FREE                                                     $4
    7     9        INIT_FCALL                                               'preg_match'
         10        SEND_VAL                                                 '%7B%5CAEtc%2FGMT%5B%2B-%5D%5Cd%2B%5Cz%7D'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $6      
         13      > JMPZ                                                     $6, ->18
    8    14    >   NOP                                                      
         15        FAST_CONCAT                                      ~7      'OK%3A+', !0
         16        ECHO                                                     ~7
         17        ECHO                                                     '%0A'
         18    > > JMP                                                      ->24
   10    19  E > > CATCH                                       last         'Throwable'
   11    20    >   NOP                                                      
         21        FAST_CONCAT                                      ~8      'FAIL%3A+', !0
         22        ECHO                                                     ~8
         23        ECHO                                                     '%0A'
    3    24    > > JMP                                                      ->4
         25    >   FE_FREE                                                  $3
   13    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.21 ms | 1396 KiB | 15 Q