3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dob = DateTimeImmutable::createFromFormat(DateTimeImmutable::ATOM, '1971-07-08T00:00:00+02:00'); echo $dob->format(DateTimeImmutable::ATOM); echo PHP_EOL; echo $dob->format('d.m.Y.'); echo PHP_EOL; echo 'null date:'; echo PHP_EOL; var_dump(DateTimeImmutable::createFromFormat(DateTimeImmutable::ATOM, null));
Output for git.master, git.master_jit, rfc.property-hooks
1971-07-08T00:00:00+02:00 08.07.1971. null date: Deprecated: DateTimeImmutable::createFromFormat(): Passing null to parameter #2 ($datetime) of type string is deprecated in /in/OJKfJ on line 12 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:
64.16 ms | 401 KiB | 8 Q