3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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()));
Output for 7.1.0
int(425)
Output for 7.0.14
int(423)
Output for 5.6.20 - 5.6.21, 7.0.5 - 7.0.6
int(420)
Output for 5.4.28 - 5.4.32, 5.5.24 - 5.6.14, 5.6.19, hhvm-3.10.0, 7.0.4
int(417)
Output for 5.6.15 - 5.6.18, 7.0.0 - 7.0.3
int(418)
Output for hhvm-3.12.0
int(0)
Output for 5.6.28
int(422)
Output for 5.3.11 - 5.3.23, 5.4.1 - 5.4.13, 5.4.21 - 5.4.27, 5.4.34 - 5.4.45
int(416)
Output for 5.3.24 - 5.3.29, 5.4.14 - 5.4.20
int(419)
Output for 5.3.9 - 5.3.10, 5.4.0
int(415)
Output for 5.3.7 - 5.3.8
int(413)
Output for 5.3.6
int(411)
Output for 5.3.4 - 5.3.5
int(408)
Output for 5.3.3
int(407)
Output for 5.3.2
int(406)
Output for 5.3.1
int(403)
Output for 5.3.0
int(402)
Output for 5.2.14 - 5.2.17
int(565)
Output for 5.2.13
int(564)
Output for 5.2.12
int(561)
Output for 5.2.9 - 5.2.11
int(560)
Output for 5.2.7 - 5.2.8
int(559)
Output for 5.2.6
int(557)
Output for 5.2.5
int(552)
Output for 5.2.2 - 5.2.4
int(551)
Output for 5.2.0 - 5.2.1
int(546)
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTimeZone' not found in /in/pqPtP on line 6
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '{' in /in/pqPtP on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected '{' in /in/pqPtP on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/pqPtP on line 5
Process exited with code 255.