3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function timezone_list() { static $timezones = null; if ($timezones === null) { $timezones = array(); $offsets = array(); $now = new DateTime(); foreach (DateTimeZone::listIdentifiers() as $timezone) { $now->setTimezone(new DateTimeZone($timezone)); $offsets[] = $offset = $now->getOffset(); $timezones[$timezone] = '(GMT ' . ($offset ? sprintf('%+03d:%02d', intval($offset / 3600), abs(intval($offset % 3600 / 60))) : '') . ') ' . str_replace(array("/", "_", "St "), array(", ", " ", "St. "), $timezone); } array_multisort($offsets, $timezones); } return $timezones; } print_r(md5(serialize(timezone_list())));
Output for 7.1.0
ce2b46aeacae6936661f1d3329fe008f
Output for 7.0.14
07197a183717b4588540cb9d36b0621d
Output for 5.6.24 - 5.6.25, hhvm-3.10.0 - 3.12.0, 7.0.9 - 7.0.10
b08feeabad7572e57a45f78d93bbcd11
Output for 5.6.20 - 5.6.23, 7.0.5 - 7.0.8
0cc65f31e203451e0dfd78394beb8c02
Output for 5.6.19, 7.0.4
80279e97cf0338b7f3835d0db224f20a
Output for 5.6.15 - 5.6.18, 7.0.0 - 7.0.3
b0d390b6c8fa6961ad86b674fc7d8671
Output for 5.6.28
b982693eaf5782418e3c20f5e63eb71c
Output for 5.5.19 - 5.5.38, 5.6.3 - 5.6.14
17973166136ab887619a8f8e1b4bfd38
Output for 5.4.34 - 5.4.45, 5.5.18, 5.6.0 - 5.6.2
2480448ebb85ecd8621539a330026c24
Output for 5.4.28 - 5.4.32, 5.5.12 - 5.5.16
c74aa53bc69289e42074648e69a280b0
Output for 5.4.25 - 5.4.27, 5.5.8 - 5.5.11
0cbd2721471ddd2c2573d272955a8feb
Output for 5.4.22 - 5.4.24, 5.5.6 - 5.5.7
8b986136fd2a8368f1a92e7c0a5a2a8f
Output for 5.4.21, 5.5.5
ce6cf70f8923ccedb45a0b127f2b0c38
Output for 5.3.24 - 5.3.29, 5.4.14 - 5.4.20, 5.5.0 - 5.5.4
efd9c125f4eb72781e07416f849a7441
Output for 5.3.20 - 5.3.23, 5.4.10 - 5.4.13
ac764b65ffd335c7dcb3116e39a44b08
Output for 5.3.19, 5.4.9
ef2cb351a228fb7376302cb1d600a954
Output for 5.3.11 - 5.3.18, 5.4.1 - 5.4.8
e0507c460f8b2138e754d095ccb3188c
Output for 5.3.9 - 5.3.10, 5.4.0
95d76a4b994ba91c6c466394ec563cdf
Output for 5.3.7 - 5.3.8
15b6718c07e40bca99da9080245fe783
Output for 5.3.6
0f57dc703cc3de339f98bc955b23927e
Output for 5.3.4 - 5.3.5
50769cabaf0d2b0469b950397a30c5eb
Output for 5.3.3
650a623b5a8d3f31f1eaf7b67ac7a42b
Output for 5.3.2
3ca0f87c46008ac835d62148fb8f7c44
Output for 5.3.1
4b449377711314cd384059c1c64df7cf
Output for 5.3.0
8c6ffc2aeb976695d70d2cf801575281
Output for 5.2.14 - 5.2.17
c47ae8e10581e68288ba1fac53557010
Output for 5.2.13
8f70291ea13f9fc95d4ba3d1c57d7c76
Output for 5.2.12
5e781d754b54e36376ead972c8d71872
Output for 5.2.11
eab78018412bb1ef5888d6c2dd045367
Output for 5.2.10
b1a145129c5382653b532d1e66f5fd5a
Output for 5.2.9
78a9d0d0dbf70baeae22bddd8e566260
Output for 5.2.7 - 5.2.8
549823a9fda5f99cbfb3b551e05f92f8
Output for 5.2.6
257758dc3521160d2d60763f92b9b0dd
Output for 5.2.5
9f585d2f4c6deb2298db5c220bf5a4c8
Output for 5.2.2 - 5.2.4
f2aecd5e16c2f35bd3ca91c1532110b6
Output for 5.2.0 - 5.2.1
111804db413cbc8f07d21b64ccf26b05
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/9Aqon on line 9
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/9Aqon on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/9Aqon on line 9