3v4l.org

run code in 300+ PHP versions simultaneously
<?php $goodFormatter = new IntlDateFormatter("ru_RU", IntlDateFormatter::FULL, IntlDateFormatter::FULL, new DateTimeZone("UTC")); $badFormatter = new IntlDateFormatter("ru_RU", IntlDateFormatter::FULL, IntlDateFormatter::FULL, new DateTimeZone("UTC"), null, "d MMM"); $badFormatter2 = new IntlDateFormatter("ru_RU", IntlDateFormatter::FULL, IntlDateFormatter::FULL, new DateTimeZone("UTC")); $badFormatter2->setPattern("d MMM"); echo "Formatter without pattern: " . $goodFormatter->getLocale() . PHP_EOL; echo "Formatter with pattern: " . $badFormatter->getLocale() . PHP_EOL; echo "Formatter with pattern set later: " . $badFormatter2->getLocale() . 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.3.60.0130.00621.81
8.3.50.0370.00921.14
8.3.40.0090.00620.92
8.3.30.0000.01520.77
8.3.20.0030.00522.41
8.3.10.0000.00820.86
8.3.00.0030.00623.31
8.2.180.0100.01025.92
8.2.170.0040.01222.96
8.2.160.0120.00322.68
8.2.150.0060.00324.18
8.2.140.0090.00024.66
8.2.130.0060.00326.16
8.2.120.0000.00823.94
8.2.110.0000.01022.18
8.2.100.0090.00320.72
8.2.90.0030.00621.22
8.2.80.0060.00321.04
8.2.70.0030.00720.50
8.2.60.0030.00620.50
8.2.50.0040.00420.93
8.2.40.0050.00522.35
8.2.30.0120.00021.64
8.2.20.0150.00220.67
8.2.10.0000.00820.91
8.2.00.0040.00721.14
8.1.270.0060.00324.32
8.1.260.0040.00426.35
8.1.250.0040.00728.09
8.1.240.0060.00626.09
8.1.230.0100.00323.91
8.1.220.0060.00320.66
8.1.210.0000.00821.78
8.1.200.0040.00420.43
8.1.190.0080.00819.97
8.1.180.0030.00620.23
8.1.170.0080.00020.48
8.1.160.0030.00624.73
8.1.150.0070.00521.01
8.1.140.0000.01020.44
8.1.130.0000.00920.73
8.1.120.0050.00520.34
8.1.110.0000.00820.42
8.1.100.0060.00320.37
8.1.90.0060.00320.26
8.1.80.0040.00420.38
8.1.70.0120.00820.42
8.1.60.0200.00420.33
8.1.50.0060.00620.45
8.1.40.0080.00820.27
8.1.30.0120.00420.35
8.1.20.0180.00720.60
8.1.10.0120.00020.42
8.1.00.0200.00020.54
8.0.300.0060.00322.20
8.0.290.0040.00419.88
8.0.280.0000.00820.56
8.0.270.0030.00519.77
8.0.260.0090.00420.12
8.0.250.0130.00020.14
8.0.240.0030.00520.21
8.0.230.0130.00719.97
8.0.220.0050.00520.05
8.0.210.0040.00420.03
8.0.200.0100.00319.94
8.0.190.0110.00720.09
8.0.180.0130.00020.14
8.0.170.0240.00319.87
8.0.160.0140.00720.16
8.0.150.0070.00719.63
8.0.140.0170.00319.86
8.0.130.0030.00313.34
8.0.120.0000.01119.92
8.0.110.0000.00819.82
8.0.100.0040.00419.80
8.0.90.0050.00320.13
8.0.80.0170.01220.03
8.0.70.0000.00820.11
8.0.60.0040.00419.99
8.0.50.0000.00820.05
8.0.30.0280.00620.18
8.0.20.0150.00520.04
8.0.10.0030.00519.98
8.0.00.0120.00819.88
7.4.330.0020.00216.77
7.4.320.0070.00019.73
7.4.300.0030.00519.56
7.4.290.0150.01219.79
7.4.280.0170.00619.36
7.4.270.0050.00319.40
7.4.260.0000.00919.80
7.4.250.0000.00919.43
7.4.240.0030.00519.91
7.4.230.0000.00819.43
7.4.220.0230.01619.80
7.4.210.0120.00919.79
7.4.200.0080.00019.89
7.4.160.0160.01319.89
7.4.150.0120.00619.76
7.4.140.0200.01019.69
7.4.130.0100.01319.84
7.4.120.0130.00819.65
7.4.110.0130.00819.90
7.4.100.0180.01419.68
7.4.90.0130.01319.66
7.4.80.0100.01419.66
7.4.70.0220.01319.38
7.4.60.0220.01019.50
7.4.50.0130.00619.60
7.4.40.0060.01319.84
7.4.30.0090.00919.78
7.4.00.0060.00917.97
7.3.330.0030.00313.02
7.3.320.0050.00013.12
7.3.310.0040.00419.19
7.3.300.0000.00719.30
7.3.290.0070.00019.37
7.3.280.0140.01019.36
7.3.270.0260.00319.32
7.3.260.0130.00619.57
7.3.250.0150.01119.33
7.3.240.0200.00719.28
7.3.230.0110.00819.52
7.3.210.0230.01319.41
7.3.200.0080.01719.21
7.3.190.0180.00419.13
7.3.180.0180.00319.62
7.3.170.0210.00019.62
7.3.160.0150.01519.42
7.3.120.0090.00917.93
7.3.110.0110.00717.64
7.3.100.0100.00717.93
7.3.90.0060.00917.61
7.3.80.0080.00817.41
7.3.70.0050.00517.62
7.3.60.0070.01017.72
7.3.50.0100.00717.68
7.3.40.0060.00917.41
7.3.30.0070.00717.54
7.3.20.0060.00619.49
7.3.10.0030.01019.13
7.3.00.0080.00819.39
7.2.330.0310.00419.65
7.2.320.0140.01119.54
7.2.310.0090.01019.44
7.2.300.0000.01919.66
7.2.290.0090.01219.86
7.2.250.0140.00718.12
7.2.240.0040.01818.16
7.2.230.0100.01017.83
7.2.220.0100.00718.26
7.2.210.0110.00717.88
7.2.200.0090.00918.27
7.2.190.0070.00718.23
7.2.180.0000.01617.98
7.2.170.0110.00418.21
7.2.60.0110.00920.06
7.1.330.0120.00318.98
7.1.320.0100.00718.67
7.1.310.0070.01019.21
7.1.300.0060.00618.64
7.1.290.0120.00318.92
7.1.280.0030.01018.87
7.1.270.0040.01118.64
7.1.260.0090.00618.78
7.1.200.0100.00618.85
7.1.70.0030.00520.32
7.1.60.0070.02120.41
7.1.50.0150.00620.25
7.1.00.0030.08025.62
7.0.200.0100.00020.07
7.0.100.0630.06323.14
7.0.90.0570.06323.08
7.0.80.0370.07023.09
7.0.70.0370.08323.27
7.0.60.0470.08323.10
7.0.50.0400.08323.29
7.0.40.0170.07323.02
7.0.30.0030.05723.11
7.0.20.0070.06023.08
7.0.10.0070.07723.05
7.0.00.0070.09023.13
5.6.280.0070.07324.21
5.6.250.0030.08023.46
5.6.240.0070.05023.80
5.6.230.0130.08323.48
5.6.220.0130.07323.50
5.6.210.0000.09023.81
5.6.200.0130.08724.19
5.6.190.0130.06724.12
5.6.180.0130.05723.95
5.6.170.0100.07723.84
5.6.160.0070.08324.18
5.6.150.0100.06323.94
5.6.140.0100.08023.93
5.6.130.0030.09324.09
5.6.120.0230.06724.02
5.6.110.0100.05724.20
5.6.100.0100.07724.17
5.6.90.0100.08324.18
5.6.80.0000.07323.23
5.6.70.0070.08323.44
5.6.60.0100.08323.61
5.6.50.0100.08723.39
5.6.40.0130.05323.54
5.6.30.0070.06323.44
5.6.20.0130.07023.31
5.6.10.0130.07023.28
5.6.00.0070.07323.24
5.5.380.0070.07723.70
5.5.370.0170.07023.40
5.5.360.0100.09023.57
5.5.350.0130.04323.43
5.5.340.0170.07023.89
5.5.330.0100.08023.96
5.5.320.0130.07023.79
5.5.310.0130.08023.70
5.5.300.0100.08023.79
5.5.290.0070.08723.96
5.5.280.0100.05323.89
5.5.270.0070.08023.78
5.5.260.0100.07323.89
5.5.250.0130.03723.70
5.5.240.0070.08023.28
5.5.230.0100.04723.11
5.5.220.0070.07723.50
5.5.210.0170.04023.11
5.5.200.0070.08323.01
5.5.190.0030.07723.24
5.5.180.0070.05723.07
5.5.160.0200.06723.25
5.5.150.0070.04723.30
5.5.140.0100.07323.10
5.5.130.0100.07023.21
5.5.120.0030.08023.24
5.5.110.0100.08023.00
5.5.100.0070.06023.25
5.5.90.0100.06723.12
5.5.80.0100.08323.10
5.5.70.0100.04323.38
5.5.60.0000.08722.89
5.5.50.0070.08023.11
5.5.40.0030.08023.04
5.5.30.0070.08022.85
5.5.20.0170.07023.14
5.5.10.0100.07723.20
5.5.00.0070.05323.22

preferences:
59.95 ms | 400 KiB | 5 Q