3v4l.org

run code in 300+ PHP versions simultaneously
<?php $locale = 'fr_FR'; $dateString = '2020-08-01'; $date = new DateTimeImmutable($dateString); $dateFormatter = new IntlDateFormatter( $locale, IntlDateFormatter::FULL, NULL ); $numberFormatter = new NumberFormatter($locale, NumberFormatter::ORDINAL); $ordinalDay = $numberFormatter->format($date->format('d')); $dateFormatter->setPattern('LLLL Y'); echo $ordinalDay . ' ' . $dateFormatter->format($date->getTimestamp());

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.60.0140.00322.43
8.3.50.0070.01622.00
8.3.40.0100.01021.39
8.3.30.0100.00721.64
8.3.20.0090.00024.18
8.3.10.0030.00624.66
8.3.00.0030.00726.16
8.2.180.0200.00325.92
8.2.170.0130.00321.56
8.2.160.0060.00924.63
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00426.35
8.2.110.0110.00024.47
8.2.100.0300.00720.97
8.2.90.0000.00921.22
8.2.80.0000.01121.82
8.2.70.0140.00621.13
8.2.60.0030.00621.43
8.2.50.0030.00621.00
8.2.40.0090.00021.64
8.2.30.0050.00321.60
8.2.20.0030.00621.54
8.2.10.0040.00422.02
8.2.00.0040.00422.04
8.1.280.0090.00625.92
8.1.270.0030.00625.16
8.1.260.0000.00928.09
8.1.250.0030.00528.09
8.1.240.0190.00024.70
8.1.230.0160.00024.34
8.1.220.0030.00621.16
8.1.210.0000.00922.26
8.1.200.0070.00420.73
8.1.190.0000.00920.72
8.1.180.0030.00720.90
8.1.170.0050.00522.14
8.1.160.0040.00421.57
8.1.150.0060.00321.53
8.1.140.0000.01021.52
8.1.130.0080.00022.76
8.1.120.0040.00421.14
8.1.110.0070.00320.99
8.1.100.0030.00621.08
8.1.90.0040.00421.14
8.1.80.0130.00320.83
8.1.70.0040.00421.13
8.1.60.0090.00021.17
8.1.50.0000.00820.98
8.1.40.0110.00521.18
8.1.30.0050.00521.38
8.1.20.0040.00420.89
8.1.10.0060.00321.05
8.1.00.0030.01021.05
8.0.300.0050.00522.79
8.0.290.0000.00820.38
8.0.280.0020.00522.77
8.0.270.0000.00920.81
8.0.260.0030.00322.82
8.0.250.0000.00920.69
8.0.240.0040.00420.65
8.0.230.0080.00020.78
8.0.220.0040.00420.71
8.0.210.0040.00420.52
8.0.200.0000.00820.66
8.0.190.0040.00420.64
8.0.180.0050.00520.54
8.0.170.0030.00620.70
8.0.160.0080.00020.43
8.0.150.0030.00520.53
8.0.140.0000.00820.51
8.0.130.0000.00513.43
8.0.120.0000.00920.27
8.0.110.0050.00320.19
8.0.100.0000.00820.37
8.0.90.0060.00320.63
8.0.80.0090.00720.62
8.0.70.0030.00520.86
8.0.60.0090.00020.86
8.0.50.0030.00520.76
8.0.30.0090.00921.02
8.0.20.0130.00720.90
8.0.10.0030.00520.75
8.0.00.0120.01220.53
7.4.330.0000.00515.55
7.4.320.0030.00320.19
7.4.300.0000.00820.20
7.4.290.0040.00420.50
7.4.280.0080.00020.25
7.4.270.0030.00620.35
7.4.260.0030.00313.30
7.4.250.0080.00020.17
7.4.240.0030.00620.49
7.4.230.0050.00220.28
7.4.220.0020.00620.21
7.4.210.0070.01220.23
7.4.200.0000.00820.32
7.4.130.0090.01120.40
7.4.120.0130.00620.39
7.4.110.0120.01620.36
7.4.100.0130.01020.38
7.4.90.0030.01520.05
7.4.80.0200.00320.21
7.4.70.0110.01320.14
7.4.60.0150.00720.08
7.4.50.0130.00820.09
7.4.40.0100.01120.23
7.4.30.0070.01620.14
7.4.20.0130.01019.99
7.4.10.0140.00620.07
7.4.00.0100.00919.93
7.3.330.0040.00420.21
7.3.320.0050.00013.27
7.3.310.0050.00319.97
7.3.300.0090.00020.06
7.3.290.0070.01019.82
7.3.280.0030.01320.05
7.3.260.0120.01320.38
7.3.230.0090.01220.34
7.3.210.0070.01420.24
7.3.200.0090.01020.05
7.3.190.0180.00319.93
7.3.180.0120.00819.96
7.3.170.0110.00819.93
7.3.160.0070.01220.26
7.3.150.0140.00919.96
7.3.140.0170.00720.13
7.3.130.0090.01220.16
7.3.120.0150.00820.17
7.3.110.0110.01119.87
7.3.100.0150.00920.11
7.3.90.0020.01719.80
7.3.80.0110.01319.95
7.3.70.0080.01519.82
7.3.60.0140.00719.94
7.3.50.0100.01020.01
7.3.40.0100.01120.04
7.3.30.0130.00620.02
7.3.20.0130.00919.91
7.3.10.0160.00719.84
7.3.00.0090.01219.91
7.2.330.0090.01119.95
7.2.320.0130.00919.95
7.2.310.0110.00920.23
7.2.300.0100.01020.05
7.2.290.0070.01319.94
7.2.280.0110.01320.06
7.2.270.0100.01520.01
7.2.260.0150.00620.10
7.2.250.0090.01519.98
7.2.240.0150.01119.95
7.2.230.0120.01120.30
7.2.220.0090.01520.00
7.2.210.0130.01020.16
7.2.200.0110.01020.07
7.2.190.0120.00919.97
7.2.180.0030.01720.24
7.2.170.0090.01020.06
7.2.160.0110.00920.03
7.2.150.0100.01220.21
7.2.140.0150.01019.98
7.2.130.0070.01319.99
7.2.120.0250.00920.20
7.2.110.0170.00720.17
7.2.100.0140.00720.15
7.2.90.0300.00620.05
7.2.80.0160.00819.86
7.2.70.0140.00619.94
7.2.60.0110.01120.03
7.2.50.0150.01020.21
7.2.40.0090.01420.09
7.2.30.0120.01020.07
7.2.20.0120.00920.04
7.2.10.0090.01020.19
7.2.00.0110.01120.14

preferences:
67.6 ms | 400 KiB | 5 Q