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); $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); echo $formatterSydney->format($dateB);
Output for git.master, git.master_jit
Fatal error: Uncaught Exception: Failed to parse time string (2014-10-25 03:00;00) at position 16 (;): Unexpected character in /in/4KorA:5 Stack trace: #0 /in/4KorA(5): DateTime->__construct('2014-10-25 03:0...', Object(DateTimeZone)) #1 {main} thrown in /in/4KorA on line 5
Process exited with code 255.
Output for rfc.property-hooks
Fatal error: Uncaught DateMalformedStringException: Failed to parse time string (2014-10-25 03:00;00) at position 16 (;): Unexpected character in /in/4KorA:5 Stack trace: #0 /in/4KorA(5): DateTime->__construct('2014-10-25 03:0...', Object(DateTimeZone)) #1 {main} thrown in /in/4KorA on line 5
Process exited with code 255.

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