3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Tinker away! $dateString = "4 Квітень 2009"; 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";

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.90.0100.00726.77
8.3.80.0060.00318.31
8.3.70.0230.00917.81
8.3.60.0160.01317.81
8.3.50.0100.00318.34
8.3.40.0140.01117.81
8.3.30.0240.00317.81
8.3.20.0190.00917.81
8.3.10.0110.01417.81
8.3.00.0240.00317.81
8.2.210.0090.00926.77
8.2.200.0060.00318.54
8.2.190.0190.00817.81
8.2.180.0250.00017.81
8.2.170.0210.00817.81
8.2.160.0210.01217.81
8.2.150.0220.00417.81
8.2.140.0200.00517.81
8.2.130.0170.00817.81
8.2.120.0140.00917.81
8.2.110.0230.00317.81
8.2.100.0200.00717.81
8.2.90.0200.00517.81
8.2.80.0190.00417.81
8.2.70.0160.00617.81
8.2.60.0210.00317.81
8.2.50.0160.00817.81
8.2.40.0230.00317.81
8.2.30.0180.00517.81
8.2.20.0260.00017.81
8.2.10.0270.00717.81
8.2.00.0150.00617.81
8.1.290.0040.00430.84
8.1.280.0150.00617.81
8.1.270.0230.00017.81
8.1.260.0170.00717.81
8.1.250.0180.00517.81
8.1.240.0200.00017.81
8.1.230.0200.00417.81
8.1.220.0210.00317.81
8.1.210.0210.00317.81
8.1.200.0190.00517.81
8.1.190.0220.00317.81
8.1.180.0260.01017.81
8.1.170.0200.00717.81
8.1.160.0170.00717.81
8.1.150.0200.01017.81
8.1.140.0200.00417.81
8.1.130.0210.00017.81
8.1.120.0150.00517.81
8.1.110.0160.00817.81
8.1.100.0200.00317.81
8.1.90.0170.00717.81
8.1.80.0220.00417.81
8.1.70.0190.00317.81
8.1.60.0200.00917.81
8.1.50.0210.00417.81
8.1.40.0220.00717.81
8.1.30.0220.00917.81
8.1.20.0180.00717.81
8.1.10.0210.00317.81
8.1.00.0150.00617.81

preferences:
26.83 ms | 401 KiB | 5 Q