3v4l.org

run code in 500+ PHP versions simultaneously
<?php final class Rfc7231Formatter { public static function format(DateTimeImmutable $dt): string { return $dt->setTimezone(new DateTimeZone('GMT'))->format('D, d M Y H:i:s') . ' GMT'; } } echo Rfc7231Formatter::format(new DateTimeImmutable('2026-01-21 12:23:34.567890+01:00')); echo PHP_EOL; echo Rfc7231Formatter::format(new DateTimeImmutable('2026-01-21 12:23:34.567890-08:00'));

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.5.90.0080.00817.23
8.5.80.0090.00817.21
8.5.70.0130.00419.04
8.5.60.0090.00517.17
8.5.50.0090.00816.74
8.5.30.0120.00819.74
8.5.20.0080.01017.50
8.5.10.0110.00617.14
8.4.240.0110.01121.67
8.4.230.0190.00719.80
8.4.220.0070.00319.73
8.4.210.0070.00719.73
8.4.180.0100.01122.27
8.4.170.0140.00920.66
8.4.160.0140.00722.40
8.4.140.0110.01217.98
8.4.90.0120.01018.16
8.3.330.0110.00618.85
8.3.320.0120.01118.72
8.3.310.0100.01018.83
8.3.300.0140.00918.88
8.3.290.0100.01020.33
8.3.180.0100.00717.07
8.3.50.0090.01316.92
8.2.320.0080.01118.30
8.2.310.0100.00918.24

preferences:
61.1 ms | 591 KiB | 5 Q