3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.2.15 - 8.2.18, 8.3.2 - 8.3.4, 8.3.6
d6989ae9e9fa801455d77a5aedec1103
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 d6989ae9e9fa801455d77a5aedec1103
Output for 8.1.18 - 8.1.27, 8.2.5 - 8.2.14, 8.3.0 - 8.3.1
c12be826a4341d920615649b36d6db2d
Output for 8.1.14 - 8.1.17, 8.2.1 - 8.2.4
276ad0d6093732ca6f829954a7514165
Output for 8.0.26 - 8.0.30, 8.1.13, 8.2.0
f049faf96e0e9fd593a2e296d4c3dd9e
Output for 8.0.25, 8.1.12
0f8b246ffdb5a8ecb4ce85f6097590d5
Output for 8.1.10 - 8.1.11
4e9898f9a4f423f09efbd566d91910ff
Output for 7.4.26 - 7.4.33, 8.0.13 - 8.0.22, 8.1.0 - 8.1.9
422d8c75b0ee7e41c4578727b686f8e9
Output for 8.0.23 - 8.0.24
59ea9d990eb9e7baff6c57242100c497
Output for 7.4.16 - 7.4.25, 8.0.3 - 8.0.12
b4d36c4dc4b3526bf706eec06b88eb1b
Output for 7.3.18 - 7.3.33, 7.4.6 - 7.4.15, 8.0.0 - 8.0.2
5189e5661a5b84afd1564f4e1455eef9
Output for 7.2.29 - 7.2.33, 7.3.12 - 7.3.17, 7.4.0 - 7.4.5
701625feef801264ca1731d3d1e7a9a2
Output for 7.0.20, 7.1.5 - 7.1.20, 7.2.0 - 7.2.6
867ede52f8de38dd7829bafaf3736187
Output for 7.1.0
ce2b46aeacae6936661f1d3329fe008f
Output for 7.0.14
07197a183717b4588540cb9d36b0621d
Output for 5.6.24 - 5.6.25, 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.0.5, 5.1.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.3.11, 4.4.0 - 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

preferences:
241.95 ms | 401 KiB | 355 Q