3v4l.org

run code in 500+ PHP versions simultaneously
<?php $validDateTimeStringsAccordingToIso8601 = [ '20230328T070000.000Z', // a basic format containing a microsecond fraction '2023-03-28T07:00:00.000Z', // The exact sme as extended format '20230328T07.5Z' // a basic format describing 7:30 according to ISO ]; foreach ($validDateTimeStringsAccordingToIso8601 as $dateTime) { try { $d = new DateTimeImmutable($dateTime); echo $d->format('c') . PHP_EOL; } catch (Throwable $t) { echo $t . PHP_EOL; } }

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.30.0130.00419.75
8.5.20.0070.01120.26
8.5.10.0110.00620.25
8.5.00.0090.01220.45
8.4.180.0120.01019.94
8.4.170.0120.01020.64
8.4.160.0040.00624.14
8.4.150.0100.00416.99
8.4.140.0130.00918.23
8.4.130.0170.00318.88
8.4.120.0130.00724.25
8.4.110.0140.00619.09
8.4.100.0110.00919.07
8.4.90.0120.00120.73
8.4.80.0110.01019.04
8.4.70.0100.00918.70
8.4.60.0070.01019.16
8.4.50.0150.00718.21
8.4.40.0070.01018.14
8.4.30.0030.00621.08
8.4.20.0120.00926.51
8.4.10.0080.00024.08
8.3.300.0120.00720.93
8.3.290.0120.00820.81
8.3.280.0130.00618.80
8.3.270.0100.00916.83
8.3.260.0090.00916.98
8.3.250.0090.01019.13
8.3.240.0070.01217.57
8.3.230.0130.00716.86
8.3.220.0080.01019.34
8.3.210.0130.00617.17
8.3.200.0050.00416.80
8.3.190.0070.00219.50
8.3.180.0070.00517.16
8.3.170.0150.00419.23
8.3.160.0110.00716.88
8.3.150.0140.00421.14
8.3.140.0090.00616.84
8.3.130.0050.00319.00
8.3.120.0040.00419.16
8.3.110.0030.00518.72
8.3.100.0000.00816.94
8.3.90.0040.00416.88
8.3.80.0070.00318.57
8.3.70.0040.01418.65
8.3.60.0090.00616.88
8.3.50.0060.00916.92
8.3.40.0150.00020.34
8.3.30.0090.00619.21
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0000.00826.16
8.2.300.0130.00722.36
8.2.290.0100.00820.45
8.2.280.0050.00420.62
8.2.270.0120.00617.37
8.2.260.0040.00420.23
8.2.250.0030.00717.11
8.2.240.0060.01216.89
8.2.230.0080.00020.94
8.2.220.0000.00924.06
8.2.210.0070.00726.77
8.2.200.0000.00918.54
8.2.190.0130.00316.88
8.2.180.0120.00317.10
8.2.170.0120.00319.29
8.2.160.0150.00622.96
8.2.150.0080.00325.66
8.2.140.0050.00224.66
8.2.130.0030.00526.16
8.2.120.0040.00426.16
8.2.110.0070.00422.37
8.2.100.0040.00818.41
8.2.90.0000.00918.25
8.2.80.0060.00319.28
8.2.70.0040.00418.00
8.2.60.0080.00018.13
8.2.50.0000.00918.13
8.2.40.0060.00318.23
8.2.30.0080.00818.13
8.2.20.0100.00717.75
8.2.10.0100.00717.88
8.2.00.0140.00317.88
8.1.340.0160.00621.79
8.1.330.0120.00722.07
8.1.320.0090.00416.35
8.1.310.0140.00418.53
8.1.300.0060.00318.52
8.1.290.0060.00318.88
8.1.280.0000.01525.92
8.1.270.0060.00324.66
8.1.260.0040.00426.35
8.1.250.0170.00028.09
8.1.240.0090.00022.86
8.1.230.0040.00719.21
8.1.220.0080.00018.03
8.1.210.0050.00318.77
8.1.200.0110.00017.85
8.1.190.0060.00317.63
8.1.180.0040.00418.10
8.1.170.0170.00017.75
8.1.160.0090.00917.62
8.1.150.0160.00017.73
8.1.140.0100.00717.62
8.1.130.0130.00417.63
8.1.120.0110.00617.62
8.1.110.0120.00717.75
8.1.100.0160.00017.62
8.1.90.0120.00417.62
8.1.80.0170.00017.62
8.1.70.0160.00317.62
8.1.60.0100.00717.63
8.1.50.0140.00317.63
8.1.40.0140.00317.72
8.1.30.0120.00617.75
8.1.20.0130.00417.62
8.1.10.0120.00417.63
8.1.00.0150.00417.62
8.0.300.0040.00420.07
8.0.290.0040.00417.25
8.0.280.0040.00417.62
8.0.270.0160.00017.62
8.0.260.0090.00617.62
8.0.250.0140.00417.62
8.0.240.0160.00017.62
8.0.230.0170.00017.62
8.0.220.0080.00817.62
8.0.210.0170.00017.62
8.0.200.0000.01717.62
8.0.190.0080.00817.62
8.0.180.0160.00017.62
8.0.170.0120.00517.62
8.0.160.0170.00017.62
8.0.150.0170.00017.62
8.0.140.0080.00817.62
8.0.130.0100.00717.62
8.0.120.0120.00517.62
8.0.110.0120.00317.62
8.0.100.0150.00317.62
8.0.90.0100.00517.62
8.0.80.0170.00317.62
8.0.70.0070.01017.62
8.0.60.0160.00017.62
8.0.50.0140.00217.62
8.0.30.0080.00817.62
8.0.20.0110.00517.62
8.0.10.0070.01017.62

preferences:
90.96 ms | 1145 KiB | 5 Q