3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_internal_encoding('UTF-8'); $content = 'mesut kahvecişiğüçö'; 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.0090.00916.34
8.3.50.0080.01021.99
8.3.40.0070.00718.63
8.3.30.0120.00319.04
8.3.20.0000.00820.36
8.3.10.0070.00021.89
8.3.00.0100.00019.00
8.2.180.0110.00416.75
8.2.170.0090.00622.96
8.2.160.0060.00920.53
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0050.00319.76
8.2.110.0070.00322.08
8.2.100.0040.00717.75
8.2.90.0040.00419.06
8.2.80.0080.00017.97
8.2.70.0030.00617.63
8.2.60.0040.00817.93
8.2.50.0000.00818.07
8.2.40.0040.00418.28
8.2.30.0100.00018.02
8.2.20.0040.00417.80
8.2.10.0040.00418.16
8.2.00.0040.00417.82
8.1.280.0110.00425.92
8.1.270.0000.00820.66
8.1.260.0050.00326.35
8.1.250.0020.00528.09
8.1.240.0080.00023.92
8.1.230.0070.00319.02
8.1.220.0030.00517.74
8.1.210.0050.00518.77
8.1.200.0070.00717.35
8.1.190.0050.00317.22
8.1.180.0070.00018.10
8.1.170.0040.00418.72
8.1.160.0070.00022.08
8.1.150.0070.00018.95
8.1.140.0040.00417.59
8.1.130.0070.00017.89
8.1.120.0040.00417.56
8.1.110.0030.00617.60
8.1.100.0000.00817.51
8.1.90.0040.00417.54
8.1.80.0030.00317.50
8.1.70.0070.00017.57
8.1.60.0030.00517.67
8.1.50.0040.00417.50
8.1.40.0000.00817.51
8.1.30.0000.00817.76
8.1.20.0000.00717.71
8.1.10.0040.00417.55
8.1.00.0000.00917.52
8.0.300.0050.00318.77
8.0.290.0000.00716.75
8.0.280.0000.00718.54
8.0.270.0030.00517.28
8.0.260.0000.00617.25
8.0.250.0070.00016.95
8.0.240.0030.00317.05
8.0.230.0070.00017.03
8.0.220.0040.00416.92
8.0.210.0000.00717.05
8.0.200.0000.00616.99
8.0.190.0040.00416.99
8.0.180.0070.00316.98
8.0.170.0040.00417.04
8.0.160.0040.00417.02
8.0.150.0000.00716.82
8.0.140.0000.00716.86
8.0.130.0050.00013.39
8.0.120.0030.00616.98
8.0.110.0000.00816.96
8.0.100.0000.00717.03
8.0.90.0000.00716.80
8.0.80.0070.01416.97
8.0.70.0040.00416.82
8.0.60.0000.00816.96
8.0.50.0070.00017.01
8.0.30.0080.01717.05
8.0.20.0100.00917.40
8.0.10.0000.00916.97
8.0.00.0080.00916.76
7.4.330.0050.00015.21
7.4.320.0030.00316.59
7.4.300.0060.00016.53
7.4.290.0030.00716.69
7.4.280.0040.00416.57
7.4.270.0070.00016.67
7.4.260.0030.00316.46
7.4.250.0040.00416.51
7.4.240.0040.00416.53
7.4.230.0070.00016.61
7.4.220.0150.00916.66
7.4.210.0130.00416.75
7.4.200.0030.00316.66
7.4.160.0090.00616.56
7.4.150.0090.00917.40
7.4.140.0110.00817.86
7.4.130.0080.00816.56
7.4.120.0090.00916.57
7.4.110.0030.02016.48
7.4.100.0070.01016.51
7.4.90.0060.01016.44
7.4.80.0100.00819.39
7.4.70.0060.01016.34
7.4.60.0140.00416.33
7.4.50.0030.00516.30
7.4.40.0090.01316.80
7.4.30.0140.00716.44
7.4.00.0100.00715.07
7.3.330.0000.00613.08
7.3.320.0170.00013.26
7.3.310.0030.00316.37
7.3.300.0030.00316.33
7.3.290.0060.00016.34
7.3.280.0090.00916.35
7.3.270.0100.00817.40
7.3.260.0070.01016.34
7.3.250.0070.01016.46
7.3.240.0110.01116.41
7.3.230.0100.01316.39
7.3.210.0100.00716.23
7.3.200.0090.00919.39
7.3.190.0140.00616.46
7.3.180.0090.00916.66
7.3.170.0100.01016.32
7.3.160.0160.00016.32
7.3.120.0100.00714.80
7.3.110.0070.01014.98
7.3.100.0070.00714.58
7.3.90.0060.00614.70
7.3.80.0140.00014.46
7.3.70.0030.00914.74
7.3.60.0060.00915.00
7.3.50.0050.00514.71
7.3.40.0060.00914.85
7.3.30.0170.00014.73
7.3.20.0040.00916.62
7.3.10.0040.01116.43
7.3.00.0080.00916.30
7.2.330.0140.00416.58
7.2.320.0070.01016.64
7.2.310.0190.00316.60
7.2.300.0030.01416.43
7.2.290.0110.00516.29
7.2.240.0000.01014.86
7.2.230.0030.01114.90
7.2.220.0070.00714.55
7.2.210.0040.01214.77
7.2.200.0000.00814.87
7.2.190.0030.01215.05
7.2.180.0090.00314.90
7.2.170.0000.01315.05
7.2.160.0040.01115.07
7.2.150.0030.01016.56
7.2.140.0030.00616.73
7.2.130.0090.00316.63
7.2.120.0070.00916.64
7.2.110.0060.00816.76
7.2.100.0130.00616.45
7.2.90.0120.01116.85
7.2.80.0070.00716.63
7.2.70.0060.01516.71
7.2.60.0150.00616.64
7.2.50.0090.01016.62
7.2.40.0150.00317.12
7.2.30.0080.01016.55
7.2.20.0100.00716.56
7.2.10.0120.00516.64
7.2.00.0070.00917.60
7.1.330.0030.00915.90
7.1.320.0070.00715.93
7.1.310.0080.00316.07
7.1.300.0040.01115.61
7.1.290.0030.01015.84
7.1.280.0040.01115.41
7.1.270.0000.00815.74
7.1.260.0030.01315.59
7.1.250.0100.00915.68
7.1.100.0110.01117.70
7.1.70.0050.00317.09
7.1.60.0110.00719.46
7.1.50.0160.00617.10
7.1.00.0070.07322.43
7.0.200.0070.00316.75
7.0.140.0070.03022.19
7.0.60.0030.05319.88
7.0.50.0100.05017.82
7.0.40.0030.04320.27
7.0.30.0200.04320.24
7.0.20.0370.07020.18
7.0.10.0270.05020.00
7.0.00.0070.08320.01
5.6.280.0030.07321.12
5.6.210.0130.08320.65
5.6.200.0130.07318.16
5.6.190.0030.09020.48
5.6.180.0300.04720.61
5.6.170.0330.07020.53
5.6.160.0070.08320.47
5.6.150.0000.04318.12
5.6.140.0070.08018.21
5.6.130.0270.04718.20
5.6.120.0070.05321.11
5.6.110.0230.05721.08
5.6.100.0130.05321.00
5.6.90.0070.04021.00
5.6.80.0030.04020.38
5.5.350.0200.07720.40
5.5.340.0100.07017.95
5.5.330.0070.08020.38
5.5.320.0070.05720.16
5.5.310.0230.06720.16
5.5.300.0130.07317.92
5.5.290.0070.03717.91
5.5.280.0100.07320.64
5.5.270.0000.06020.79
5.5.260.0070.08320.78
5.5.250.0100.07720.68
5.5.240.0100.07020.23
5.4.450.0430.07319.14
5.4.440.0400.07019.39
5.4.430.0330.05719.32
5.4.420.0370.07019.40
5.4.410.0300.04719.18
5.4.400.0270.03719.09
5.4.390.0370.07318.81
5.4.380.0370.03319.10
5.4.370.0300.05318.99
5.4.360.0430.06319.10
5.4.350.0370.06718.86
5.4.340.0370.06719.07
5.4.320.0370.07018.99
5.4.310.0270.05318.79
5.4.300.0230.06718.96
5.4.290.0270.05319.08
5.4.280.0370.04019.05
5.4.270.0230.05018.83
5.4.260.0300.03319.00
5.4.250.0330.06319.07
5.4.240.0370.06019.09
5.4.230.0400.06719.05
5.4.220.0230.05718.96
5.4.210.0300.04019.06
5.4.200.0330.07018.86
5.4.190.0300.03718.85
5.4.180.0400.03718.93
5.4.170.0230.03318.85
5.4.160.0200.03318.98
5.4.150.0200.04318.84
5.4.140.0400.04016.32
5.4.130.0200.03316.37
5.4.120.0300.03016.25
5.4.110.0200.03716.34
5.4.100.0270.03016.35
5.4.90.0230.04316.39
5.4.80.0230.04716.18
5.4.70.0200.03716.37
5.4.60.0230.03316.36
5.4.50.0230.03316.36
5.4.40.0200.03316.40
5.4.30.0230.03316.36
5.4.20.0170.04016.36
5.4.10.0200.03716.18
5.4.00.0170.03715.79
5.3.290.0370.05714.52
5.3.280.0430.06314.50
5.3.270.0200.04314.44
5.3.260.0270.03714.46
5.3.250.0170.03714.63
5.3.240.0170.04714.43
5.3.230.0230.04314.63
5.3.220.0200.03714.51
5.3.210.0230.03714.61
5.3.200.0200.03714.40
5.3.190.0270.03314.59
5.3.180.0200.04014.65
5.3.170.0200.04314.42
5.3.160.0230.03314.61
5.3.150.0230.03714.47
5.3.140.0200.03714.58
5.3.130.0300.04314.50
5.3.120.0200.04314.52
5.3.110.0330.03314.40
5.3.100.0270.03013.89
5.3.90.0200.03713.93
5.3.80.0270.04013.79
5.3.70.0230.04313.87
5.3.60.0200.03713.86
5.3.50.0200.03713.90
5.3.40.0200.03713.79
5.3.30.0300.02713.89
5.3.20.0200.03713.50
5.3.10.0270.03013.49
5.3.00.0270.07313.66
5.2.170.0230.02711.19
5.2.160.0200.02711.03
5.2.150.0200.02711.19
5.2.140.0230.02711.23
5.2.130.0230.02310.93
5.2.120.0270.02010.94
5.2.110.0230.03011.11
5.2.100.0230.03310.95
5.2.90.0300.05011.15
5.2.80.0170.04710.95
5.2.70.0200.03010.93
5.2.60.0300.03310.88
5.2.50.0270.04710.85
5.2.40.0130.04310.88
5.2.30.0330.04711.02
5.2.20.0230.05310.96
5.2.10.0330.04310.75
5.2.00.0200.03010.57
5.1.60.0230.0509.86
5.1.50.0330.04310.07
5.1.40.0230.0339.86
5.1.30.0170.03010.23
5.1.20.0230.03310.42
5.1.10.0230.0309.93
5.1.00.0230.02010.15
5.0.50.0100.0278.59
5.0.40.0170.0238.52
5.0.30.0130.0278.12
5.0.20.0070.0238.28
5.0.10.0100.0338.29
5.0.00.0100.0438.26
4.4.90.0070.0177.82
4.4.80.0170.0307.82
4.4.70.0130.0237.82
4.4.60.0100.0207.82
4.4.50.0100.0307.82
4.4.40.0100.0337.82
4.4.30.0200.0277.82
4.4.20.0130.0177.82
4.4.10.0100.0137.82
4.4.00.0070.0277.82
4.3.110.0130.0207.82
4.3.100.0100.0137.82
4.3.90.0070.0377.82
4.3.80.0100.0377.82
4.3.70.0130.0207.82
4.3.60.0200.0207.82
4.3.50.0170.0177.82
4.3.40.0170.0337.82
4.3.30.0070.0177.82
4.3.20.0070.0137.82
4.3.10.0100.0307.82
4.3.00.0030.0237.82

preferences:
47.12 ms | 401 KiB | 5 Q