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 git.master
4e9898f9a4f423f09efbd566d91910ff
Output for git.master_jit
0f8b246ffdb5a8ecb4ce85f6097590d5
Output for rfc.property-hooks
c12be826a4341d920615649b36d6db2d

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
57.23 ms | 401 KiB | 8 Q