3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(new DateTimeZone('UTC')); var_dump(new DateTimeZone('+00')); var_dump(new DateTimeZone('+00:00')); var_dump(new DateTimeZone('+00:00:00')); var_dump(new DateTimeZone('+0000')); var_dump(new DateTimeZone('0000'));
Output for git.master, git.master_jit
object(DateTimeZone)#1 (2) { ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTimeZone)#1 (2) { ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+00:00" } object(DateTimeZone)#1 (2) { ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+00:00" } object(DateTimeZone)#1 (2) { ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+00:00" } object(DateTimeZone)#1 (2) { ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+00:00" } Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone (0000) in /in/DPRae:8 Stack trace: #0 /in/DPRae(8): DateTimeZone->__construct('0000') #1 {main} thrown in /in/DPRae on line 8
Process exited with code 255.
Output for rfc.property-hooks
object(DateTimeZone)#1 (2) { ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTimeZone)#1 (2) { ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+00:00" } object(DateTimeZone)#1 (2) { ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+00:00" } object(DateTimeZone)#1 (2) { ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+00:00" } object(DateTimeZone)#1 (2) { ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+00:00" } Fatal error: Uncaught DateInvalidTimeZoneException: DateTimeZone::__construct(): Unknown or bad timezone (0000) in /in/DPRae:8 Stack trace: #0 /in/DPRae(8): DateTimeZone->__construct('0000') #1 {main} thrown in /in/DPRae on line 8
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:
61.79 ms | 402 KiB | 8 Q