3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_internal_encoding('UTF-8'); echo mb_strtoupper('Le Courrier de Séint-Hyécinthe',"UTF-8"); 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 mb_convert_case($content, MB_CASE_UPPER, "UTF-8");

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.0120.00316.75
8.3.50.0100.00921.28
8.3.40.0130.00918.57
8.3.30.0120.00918.89
8.3.20.0040.00420.34
8.3.10.0090.00923.66
8.3.00.0120.00622.28
8.2.180.0100.01016.63
8.2.170.0130.00722.96
8.2.160.0100.01022.27
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0070.01026.16
8.2.120.0070.00317.50
8.2.110.0150.00622.29
8.2.100.0040.01217.72
8.2.90.0090.00019.23
8.2.80.0080.00017.97
8.2.70.0090.00017.50
8.2.60.0030.00518.04
8.2.50.0060.00318.07
8.2.40.0000.00820.98
8.2.30.0040.00418.08
8.2.20.0000.00817.68
8.2.10.0040.00418.02
8.2.00.0080.00018.07
8.1.280.0170.00325.92
8.1.270.0050.00320.43
8.1.260.0050.00326.35
8.1.250.0150.00328.09
8.1.240.0060.00323.79
8.1.230.0040.00719.20
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0100.00017.47
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0030.00518.74
8.1.160.0000.00821.99
8.1.150.0020.00519.04
8.1.140.0040.00417.60
8.1.130.0040.00417.88
8.1.120.0000.00717.55
8.1.110.0080.00017.61
8.1.100.0080.00017.50
8.1.90.0040.00417.52
8.1.80.0070.00017.57
8.1.70.0000.00817.58
8.1.60.0030.00617.68
8.1.50.0000.00817.56
8.1.40.0060.00317.61
8.1.30.0040.00417.69
8.1.20.0030.00617.76
8.1.10.0060.00317.56
8.1.00.0040.00417.54
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.48
8.0.270.0030.00317.34
8.0.260.0030.00317.34
8.0.250.0040.00417.10
8.0.240.0080.00017.03
8.0.230.0030.00517.10
8.0.220.0030.00316.97
8.0.210.0000.00817.08
8.0.200.0000.00716.99
8.0.190.0040.00417.10
8.0.180.0040.00416.92
8.0.170.0080.00017.11
8.0.160.0070.00017.03
8.0.150.0000.00717.01
8.0.140.0070.00316.90
8.0.130.0000.00813.50
8.0.120.0040.00416.89
8.0.110.0000.00817.03
8.0.100.0040.00416.86
8.0.90.0060.00317.10
8.0.80.0080.00817.02
8.0.70.0040.00416.88
8.0.60.0000.00817.04
8.0.50.0000.00716.99
8.0.30.0110.00617.21
8.0.20.0150.00517.40
8.0.10.0030.00517.05
8.0.00.0060.01116.81
7.4.330.0000.00515.19
7.4.320.0030.00516.58
7.4.300.0000.00716.68
7.4.290.0030.00316.61
7.4.280.0060.00316.58
7.4.270.0070.00016.52
7.4.260.0040.00416.54
7.4.250.0030.00316.52
7.4.240.0040.00316.62
7.4.230.0040.00416.72
7.4.220.0070.01016.54
7.4.210.0080.00716.66
7.4.200.0030.00316.61
7.4.160.0110.00516.81
7.4.150.0070.01317.40
7.4.140.0100.01217.86
7.4.130.0080.01216.43
7.4.120.0150.00516.64
7.4.110.0090.00916.50
7.4.100.0160.00316.64
7.4.90.0140.00316.54
7.4.80.0060.01219.39
7.4.70.0100.00716.45
7.4.60.0090.00916.57
7.4.50.0090.00016.40
7.4.40.0070.01016.66
7.4.30.0140.00316.58
7.4.00.0000.01614.99
7.3.330.0000.00513.25
7.3.320.0000.00513.26
7.3.310.0000.00716.56
7.3.300.0030.00316.45
7.3.290.0050.01016.39
7.3.280.0100.00816.42
7.3.270.0110.00617.40
7.3.260.0100.00716.40
7.3.250.0110.00916.36
7.3.240.0070.01616.30
7.3.230.0070.01016.50
7.3.210.0100.00716.43
7.3.200.0030.01816.41
7.3.190.0070.01716.55
7.3.180.0110.01116.26
7.3.170.0130.00616.59
7.3.160.0130.00716.40
7.2.330.0090.00916.59
7.2.320.0160.00716.39
7.2.310.0060.01216.70
7.2.300.0000.01716.74
7.2.290.0100.00716.75
7.2.00.0000.01519.17
7.1.100.0060.00617.82
7.1.70.0030.00516.99
7.1.60.0120.00919.42
7.1.50.0070.01517.11
7.1.00.0030.08022.35
7.0.200.0030.00714.90
7.0.60.0130.04319.84
7.0.50.0130.06717.66
7.0.40.0070.09020.04
7.0.30.0270.05720.00
7.0.20.0330.03320.30
7.0.10.0100.04020.08
7.0.00.0100.08720.11
5.6.280.0030.03321.07
5.6.210.0030.05020.50
5.6.200.0000.04318.12
5.6.190.0000.05020.41
5.6.180.0500.06720.61
5.6.170.0230.08020.51
5.6.160.0070.07720.37
5.6.150.0100.07018.18
5.6.140.0070.04718.14
5.6.130.0200.06318.17
5.6.120.0030.04720.98
5.6.110.0130.07720.95
5.6.100.0170.04321.04
5.6.90.0030.08020.97
5.6.80.0100.07720.38
5.5.350.0100.07320.45
5.5.340.0100.04718.01
5.5.330.0070.08720.13
5.5.320.0130.07720.43
5.5.310.0400.07320.17
5.5.300.0030.05318.02
5.5.290.0070.06717.91
5.5.280.0100.04320.72
5.5.270.0070.04320.66
5.5.260.0200.06020.72
5.5.250.0100.03720.68
5.5.240.0130.06720.16
5.4.450.0200.07019.27
5.4.440.0130.05719.58
5.4.430.0130.07719.38
5.4.420.0130.07319.41
5.4.410.0100.04319.41
5.4.400.0130.07719.07
5.4.390.0170.08018.91
5.4.380.0170.03719.09
5.4.370.0170.06719.21
5.4.360.0200.07319.24
5.4.350.0100.06018.79
5.4.340.0100.05718.79
5.4.320.0130.04018.92
5.4.310.0300.06319.09
5.4.300.0100.07719.13
5.4.290.0170.05719.08
5.4.280.0130.05319.09
5.4.270.0270.07319.08
5.4.260.0270.06718.93
5.4.250.0170.07319.24
5.4.240.0100.07018.91
5.4.230.0170.07018.95
5.4.220.0130.05019.12
5.4.210.0200.06719.05
5.4.200.0170.04019.13
5.4.190.0130.04319.12
5.4.180.0130.04019.05
5.4.170.0170.06719.12
5.4.160.0170.05019.04
5.4.150.0100.07019.22
5.4.140.0130.03316.54
5.4.130.0070.06316.26
5.4.120.0100.05016.28
5.4.110.0100.05016.52
5.4.100.0170.03316.45
5.4.90.0070.04316.43
5.4.80.0100.07016.20
5.4.70.0100.05016.20
5.4.60.0230.06316.39
5.4.50.0200.06316.36
5.4.40.0130.04716.36
5.4.30.0100.04716.36
5.4.20.0100.07016.03
5.4.10.0170.06716.36
5.4.00.0200.06315.78
5.3.290.0100.05014.58
5.3.280.0130.07714.59
5.3.270.0100.06714.46
5.3.260.0170.05014.50
5.3.250.0100.03714.45
5.3.240.0130.05014.50
5.3.230.0130.04714.55
5.3.220.0130.03314.42
5.3.210.0170.06714.59
5.3.200.0130.05714.47
5.3.190.0170.07314.52
5.3.180.0200.04014.61
5.3.170.0200.06714.41
5.3.160.0230.05314.65
5.3.150.0130.07314.59
5.3.140.0130.06714.58
5.3.130.0200.07014.40
5.3.120.0070.08014.50
5.3.110.0130.05014.41
5.3.100.0170.05013.88
5.3.90.0130.07013.96
5.3.80.0130.06313.87
5.3.70.0130.07013.87
5.3.60.0300.04013.95
5.3.50.0030.05013.78
5.3.40.0100.04313.89
5.3.30.0170.06013.85
5.3.20.0170.05713.64
5.3.10.0200.06013.43
5.3.00.0070.06713.61
5.2.170.0100.02712.18
5.2.160.0100.06012.18
5.2.150.0030.05712.18
5.2.140.0100.06712.18
5.2.130.0130.03312.18
5.2.120.0070.06012.18
5.2.110.0130.04712.18
5.2.100.0070.03312.18
5.2.90.0100.06312.18
5.2.80.0070.06312.18
5.2.70.0100.04312.18
5.2.60.0100.04012.18
5.2.50.0170.02312.18
5.2.40.0000.06312.18
5.2.30.0100.05012.18
5.2.20.0100.05712.18
5.2.10.0130.04712.18
5.2.00.0030.03712.18
5.1.60.0000.03012.18
5.1.50.0070.05012.18
5.1.40.0100.05012.18
5.1.30.0000.03012.18
5.1.20.0030.06012.18
5.1.10.0100.05012.18
5.1.00.0030.05012.18
5.0.50.0000.04012.18
5.0.40.0070.04012.18
5.0.30.0030.04712.18
5.0.20.0000.04712.18
5.0.10.0000.04712.18
5.0.00.0030.06312.18
4.4.90.0000.02012.18
4.4.80.0000.02012.18
4.4.70.0030.03012.18
4.4.60.0000.03012.18
4.4.50.0030.03312.18
4.4.40.0030.04312.18
4.4.30.0070.03312.18
4.4.20.0000.04012.18
4.4.10.0030.02312.18
4.4.00.0000.03312.18
4.3.110.0000.03012.18
4.3.100.0000.02712.18
4.3.90.0030.03012.18
4.3.80.0070.05012.18
4.3.70.0000.03012.18
4.3.60.0030.03312.18
4.3.50.0000.02312.18
4.3.40.0070.04712.18
4.3.30.0030.03012.18
4.3.20.0000.02312.18
4.3.10.0000.03712.18
4.3.00.0000.01712.18

preferences:
95.88 ms | 401 KiB | 5 Q