3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timezones = [ 'Pacific/Auckland', 'Australia/Canberra', 'Asia/Calcutta', 'Asia/Istanbul', 'Europe/Paris', 'Europe/London', 'America/Sao_Paulo', 'America/New_York', 'America/Los_Angeles' ]; $date = new DateTime('2015-11-05 03:59:59 UTC'); foreach ($timezones as $timezone) { $date->setTimezone(new DateTimeZone($timezone)); echo sprintf('%-21s%s', $timezone.':', $date->format('Y-m-d H:i:s'))."\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
Pacific/Auckland: 2015-11-05 16:59:59 Australia/Canberra: 2015-11-05 14:59:59 Asia/Calcutta: 2015-11-05 09:29:59 Asia/Istanbul: 2015-11-05 06:59:59 Europe/Paris: 2015-11-05 04:59:59 Europe/London: 2015-11-05 03:59:59 America/Sao_Paulo: 2015-11-05 01:59:59 America/New_York: 2015-11-04 22:59:59 America/Los_Angeles: 2015-11-04 19:59:59

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:
44.96 ms | 402 KiB | 8 Q