3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tzSydney = new DateTimeZone('Australia/Sydney'); $tzAmsterdam = new DateTimeZone('Europe/Amsterdam'); $dateA = new DateTime('2014-10-25 12:00:00', $tzSydney); $dateB = new DateTime('2014-10-25 03:00:00', $tzAmsterdam); $formatterSydney = new IntlDateFormatter('en_UK', IntlDateFormatter::NONE, IntlDateFormatter::NONE, $tzSydney, IntlDateFormatter::GREGORIAN); $formatterAmsterdam = new IntlDateFormatter('en_UK', IntlDateFormatter::NONE, IntlDateFormatter::NONE, $tzAmsterdam, IntlDateFormatter::GREGORIAN); echo $formatterAmsterdam->format($dateA) . '<br>'; echo $formatterSydney->format($dateB);
Output for git.master, git.master_jit, rfc.property-hooks
20141025 03:00 AM<br>20141025 12:00 PM

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:
60.65 ms | 401 KiB | 8 Q