3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = 'Le Courrier de Sáint-Hyácinthe'; if(!mb_check_encoding($content, 'UTF-8') OR !($content === mb_convert_encoding(mb_convert_encoding($content, 'UTF-32', 'UTF-8' ), 'UTF-8', 'UTF-32'))) { $content = mb_convert_encoding($content, 'UTF-8'); } echo strtoupper($content);

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.0090.00618.18
8.3.50.0050.01121.91
8.3.40.0070.00718.52
8.3.30.0040.01819.09
8.3.20.0000.00720.21
8.3.10.0080.00021.89
8.3.00.0080.00022.34
8.2.180.0080.01216.50
8.2.170.0040.01122.96
8.2.160.0070.00719.29
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0090.00626.16
8.2.120.0080.00019.48
8.2.110.0030.00622.31
8.2.100.0080.00417.78
8.2.90.0000.00817.82
8.2.80.0090.00017.97
8.2.70.0030.00617.38
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0050.00318.28
8.2.30.0000.00818.00
8.2.20.0020.00517.64
8.2.10.0030.00517.63
8.2.00.0040.00417.65
8.1.280.0140.00725.92
8.1.270.0080.00022.21
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00020.75
8.1.230.0080.00421.10
8.1.220.0060.00317.74
8.1.210.0040.00419.04
8.1.200.0040.00417.48
8.1.190.0050.00317.43
8.1.180.0070.00018.84
8.1.170.0060.00318.68
8.1.160.0000.00722.18
8.1.150.0020.00518.69
8.1.140.0070.00317.48
8.1.130.0030.00317.87
8.1.120.0050.00317.50
8.1.110.0040.00417.52
8.1.100.0000.00717.56
8.1.90.0000.00817.50
8.1.80.0020.00517.53
8.1.70.0030.00317.42
8.1.60.0000.00917.64
8.1.50.0030.00617.58
8.1.40.0000.00817.47
8.1.30.0040.00417.73
8.1.20.0000.00817.65
8.1.10.0040.00417.60
8.1.00.0110.00017.48
8.0.300.0000.00820.03
8.0.290.0040.00417.29
8.0.280.0030.00318.42
8.0.270.0000.00717.24
8.0.260.0030.00316.89
8.0.250.0000.00716.89
8.0.240.0040.00416.93
8.0.230.0030.00517.09
8.0.220.0000.00616.98
8.0.210.0020.00516.81
8.0.200.0000.00617.00
8.0.190.0030.00516.93
8.0.180.0000.00716.97
8.0.170.0000.00716.85
8.0.160.0040.00416.96
8.0.150.0070.00016.95
8.0.140.0000.00716.96
8.0.130.0050.00013.38
8.0.120.0070.00016.80
8.0.110.0050.00317.00
8.0.100.0000.00816.98
8.0.90.0070.00016.94
8.0.80.0060.00916.95
8.0.70.0040.00416.82
8.0.60.0000.00716.84
8.0.50.0070.00017.07
8.0.30.0150.00517.15
8.0.20.0100.00917.40
8.0.10.0050.00216.80
8.0.00.0080.01216.75
7.4.330.0060.00015.00
7.4.320.0000.00616.72
7.4.300.0000.00616.47
7.4.290.0030.00316.55
7.4.280.0040.00416.70
7.4.270.0000.00716.71
7.4.260.0050.00216.60
7.4.250.0060.00316.66
7.4.240.0040.00316.57
7.4.230.0070.00016.64
7.4.220.0070.01316.64
7.4.210.0080.00716.69
7.4.200.0000.00716.55
7.4.190.0000.00816.81
7.4.160.0120.01216.64
7.4.150.0090.00917.40
7.4.140.0040.01417.86
7.4.130.0110.01016.55
7.4.120.0120.00616.47
7.4.110.0130.00316.64
7.4.100.0080.01216.44
7.4.90.0110.00716.63
7.4.80.0060.01219.39
7.4.70.0140.00316.46
7.4.60.0070.01016.59
7.4.50.0000.00916.26
7.4.40.0030.01222.77
7.4.30.0090.01316.50
7.4.00.0120.00614.78
7.3.330.0060.00013.14
7.3.320.0030.00313.24
7.3.310.0050.00316.13
7.3.300.0000.00616.25
7.3.290.0090.00616.29
7.3.280.0100.00716.29
7.3.270.0150.00717.40
7.3.260.0050.01116.26
7.3.250.0100.01216.42
7.3.240.0100.00716.47
7.3.230.0100.00716.39
7.3.210.0030.01316.25
7.3.200.0110.00519.39
7.3.190.0120.00916.35
7.3.180.0090.00616.17
7.3.170.0100.00716.27
7.3.160.0060.01016.39
7.3.120.0040.01414.83
7.3.110.0100.00914.61
7.3.100.0100.00614.70
7.3.90.0110.00714.77
7.3.80.0030.01514.57
7.3.70.0060.01014.74
7.3.60.0070.00714.72
7.3.50.0090.00614.65
7.3.40.0060.01014.63
7.3.30.0030.01014.82
7.3.20.0080.00616.41
7.3.10.0030.00916.40
7.3.00.0070.00416.30
7.2.330.0090.00916.62
7.2.320.0110.01116.45
7.2.310.0070.01116.68
7.2.300.0080.00816.27
7.2.290.0060.01016.67
7.2.250.0030.01414.48
7.2.240.0110.01114.88
7.2.230.0110.00415.06
7.2.220.0100.00615.00
7.2.210.0140.00314.77
7.2.200.0070.00714.90
7.2.190.0090.00614.89
7.2.180.0070.01114.91
7.2.170.0120.00314.84
7.1.330.0040.01115.70
7.1.320.0070.00715.82
7.1.310.0070.00715.64
7.1.300.0150.00315.73
7.1.290.0070.00815.80
7.1.280.0100.00315.45
7.1.270.0060.00315.56
7.1.260.0080.00315.40
7.1.70.0040.00717.16
7.1.60.0100.01619.82
7.1.50.0100.01416.93
7.1.00.0070.07322.30
7.0.200.0030.00316.38
7.0.140.0070.07022.12
7.0.60.0200.08021.55
7.0.50.0070.07317.89
7.0.40.0130.08020.14
7.0.30.0200.06020.34
7.0.20.0200.07320.35
7.0.10.0070.08720.13
7.0.00.0070.08720.18
5.6.280.0070.07021.10
5.6.210.0100.07320.61
5.6.200.0030.05718.21
5.6.190.0030.04720.60
5.6.180.0300.07020.57
5.6.170.0230.07720.51
5.6.160.0100.08320.50
5.6.150.0100.08318.17
5.6.140.0030.06318.08
5.6.130.0070.04018.21
5.6.120.0030.05720.99
5.6.110.0030.08321.00
5.6.100.0000.04321.04
5.6.90.0230.06320.99
5.6.80.0030.08320.48
5.5.350.0330.06020.38
5.5.340.0030.03717.95
5.5.330.0070.04320.19
5.5.320.0200.03720.13
5.5.310.0330.07020.30
5.5.300.0070.04717.98
5.5.290.0000.09017.96
5.5.280.0130.06320.87
5.5.270.0100.06720.76
5.5.260.0000.04320.96
5.5.250.0070.07720.79
5.5.240.0200.08320.16
5.4.450.4430.04319.46
5.4.440.3700.03719.18
5.4.430.4530.03719.31
5.4.420.5530.05019.45
5.4.410.4470.04019.06
5.4.400.3970.04018.96
5.4.390.3800.03719.15
5.4.380.3970.04319.12
5.4.370.3970.03719.18
5.4.360.4570.03718.86
5.4.350.3870.04318.91
5.4.340.3530.04019.04
5.4.320.3930.04019.13
5.4.310.4030.04019.16
5.4.300.3830.04019.03
5.4.290.3870.04018.86
5.4.280.4030.04018.86
5.4.270.4130.03018.96
5.4.260.3800.03718.89
5.4.250.2430.04019.23
5.4.240.0030.03719.15
5.4.230.2800.04019.18
5.4.220.4330.04019.03
5.4.210.4270.03718.89
5.4.200.3600.04019.08
5.4.190.3830.04018.84
5.4.180.3670.04019.14
5.4.170.4630.03719.23
5.4.160.2730.04318.91
5.4.150.0130.07319.22
5.4.140.3800.04016.23
5.4.130.4670.03316.41
5.4.120.4130.03716.22
5.4.110.3630.03316.37
5.4.100.3600.04016.49
5.4.90.4300.03016.35
5.4.80.3600.03316.31
5.4.70.4270.03316.37
5.4.60.3670.03316.23
5.4.50.3670.03016.32
5.4.40.3930.03316.54
5.4.30.3670.03316.20
5.4.20.4670.03716.38
5.4.10.4270.04016.10
5.4.00.3670.03315.76
5.3.290.4170.03314.59
5.3.280.4270.03714.68
5.3.270.4800.03014.54
5.3.260.4630.04014.42
5.3.250.0070.06314.69
5.3.240.0100.06314.57
5.3.230.4500.04714.54
5.3.220.3800.03714.50
5.3.210.3730.03714.49
5.3.200.3830.03714.52
5.3.190.3670.04314.54
5.3.180.3770.03014.57
5.3.170.3300.04014.49
5.3.160.3800.03014.48
5.3.150.3700.03014.48
5.3.140.3600.03314.48
5.3.130.4230.03314.53
5.3.120.4070.04014.34
5.3.110.4400.04714.50
5.3.100.3670.03314.00
5.3.90.3670.03013.84
5.3.80.4330.02713.80
5.3.70.4370.04713.96
5.3.60.4030.03713.97
5.3.50.4070.03013.78
5.3.40.4600.03313.97
5.3.30.4330.03313.84
5.3.20.3930.03313.51
5.3.10.4300.03313.59
5.3.00.3870.03713.60
5.2.170.3470.03711.30
5.2.160.4000.03311.04
5.2.150.3700.03010.97
5.2.140.3530.03011.09
5.2.130.3730.03311.27
5.2.120.4000.02711.20
5.2.110.3370.02311.18
5.2.100.3270.03011.09
5.2.90.3070.02710.99
5.2.80.3300.02311.10
5.2.70.3200.03711.03
5.2.60.3900.02710.86
5.2.50.3630.02710.83
5.2.40.3200.02710.99
5.2.30.3130.03010.90
5.2.20.2900.02710.89
5.2.10.2700.03010.86
5.2.00.3270.02310.70
5.1.60.3100.0309.83
5.1.50.3170.0279.96
5.1.40.3170.02710.04
5.1.30.3270.02310.32
5.1.20.3170.03010.23
5.1.10.3200.03310.04
5.1.00.3070.02310.09
5.0.50.1730.0208.59
5.0.40.1800.0208.38
5.0.30.1500.0278.21
5.0.20.1700.0178.16
5.0.10.1430.0238.18
5.0.00.1600.0378.06
4.4.90.1670.0175.84
4.4.80.1130.0235.84
4.4.70.2000.0135.84
4.4.60.1730.0205.89
4.4.50.1700.0135.84
4.4.40.1500.0235.84
4.4.30.1830.0135.84
4.4.20.1130.0135.87
4.4.10.1430.0175.95
4.4.00.1830.0275.84
4.3.110.1630.0175.84
4.3.100.1500.0135.84
4.3.90.1400.0175.84
4.3.80.1570.0275.84
4.3.70.1470.0135.84
4.3.60.1530.0135.84
4.3.50.1700.0175.84
4.3.40.1870.0235.84
4.3.30.0800.0135.84
4.3.20.0730.0175.84
4.3.10.1000.0235.84
4.3.00.0930.0175.84

preferences:
45.11 ms | 401 KiB | 5 Q