3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id = IntlTimeZone::getUnknown()->getId(); var_dump($id); $region = IntlTimeZone::getRegion($id); var_dump($region); foreach (IntlTimeZone::createEnumeration($region) as $k => $v) var_dump($k, $v);
Output for 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
string(11) "Etc/Unknown" bool(false) Warning: foreach() argument must be of type array|object, false given in /in/qtPRt on line 7
Output for 8.2.0 - 8.2.27
string(11) "Etc/Unknown" bool(false) Warning: foreach() argument must be of type array|object, bool given in /in/qtPRt on line 7

preferences:
42.04 ms | 407 KiB | 5 Q