3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Tinker away! $dateString = "4 Квітень 2009"; $dateString = "2000-01-01"; date_default_timezone_set('UTC'); // сейчас $date = new DateTimeImmutable($dateString); // Выведет что-то подобное: Wednesday echo $date->format('l'), "\n"; // Выведет что-то подобное: Wednesday 19th of October 2022 08:40:48 AM echo $date->format('l jS \o\f F Y h:i:s A'), "\n"; /* Использование констант в параметре format */ // Выведет что-то подобное: Wed, 19 Oct 2022 08:40:48 +0000 echo $date->format(DateTimeInterface::RFC2822), "\n";
Output for git.master, git.master_jit, rfc.property-hooks
Saturday Saturday 1st of January 2000 12:00:00 AM Sat, 01 Jan 2000 00:00:00 +0000

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:
27.53 ms | 405 KiB | 5 Q