3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tzIdentifiers = DateTimeZone::listIdentifiers(DateTimeZone::ALL_WITH_BC); foreach ($tzIdentifiers as $tzid) { try { $tz = new DateTimeZone($tzid); } catch(Exception $e) { echo $tzid . " returned by DateTimeZone::listIdentifiers(DateTimeZone::ALL_WITH_BC)." . "\n"; echo "But invalid for: new DateTimeZone(" . $tzid . ")" . "\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 20
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 20
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Found catch point at position: 11
Branch analysis from position: 11
2 jumps found. (Code = 107) Position 1 = 12, Position 2 = -2
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
filename:       /in/8R5sh
function name:  (null)
number of ops:  22
compiled vars:  !0 = $tzIdentifiers, !1 = $tzid, !2 = $tz, !3 = $e
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  $4      
          3        ASSIGN                                                   !0, $4
    5     4      > FE_RESET_R                                       $6      !0, ->20
          5    > > FE_FETCH_R                                               $6, !1, ->20
    8     6    >   NEW                                              $7      'DateTimeZone'
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !2, $7
         10      > JMP                                                      ->19
    9    11  E > > CATCH                                       last         'Exception'
   10    12    >   CONCAT                                           ~10     !1, '+returned+by+DateTimeZone%3A%3AlistIdentifiers%28DateTimeZone%3A%3AALL_WITH_BC%29.'
         13        CONCAT                                           ~11     ~10, '%0A'
         14        ECHO                                                     ~11
   11    15        CONCAT                                           ~12     'But+invalid+for%3A+new+DateTimeZone%28', !1
         16        CONCAT                                           ~13     ~12, '%29'
         17        CONCAT                                           ~14     ~13, '%0A'
         18        ECHO                                                     ~14
    5    19    > > JMP                                                      ->5
         20    >   FE_FREE                                                  $6
   13    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.36 ms | 1394 KiB | 13 Q