3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '2018-01-11T15:36:16.000+01:00'; $datetime = new \DateTimeImmutable($string); var_dump( $datetime->format(\DateTime::RFC3339_EXTENDED) === $string, \DateTimeImmutable::createFromFormat(\DateTime::RFC3339_EXTENDED, $string), \DateTimeImmutable::getLastErrors() );
Output for git.master, git.master_jit, rfc.property-hooks
bool(true) object(DateTimeImmutable)#2 (3) { ["date"]=> string(26) "2018-01-11 15:36:16.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+01:00" } bool(false)

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