3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_internal_encoding('UTF-8'); $content = 'AİĞÜÇÖŞIğüç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.0040.01118.31
8.3.50.0090.01022.05
8.3.40.0090.00618.59
8.3.30.0100.01019.09
8.3.20.0000.00820.16
8.3.10.0090.00022.18
8.3.00.0070.00022.19
8.2.180.0090.00616.50
8.2.170.0040.01122.96
8.2.160.0100.01020.93
8.2.150.0060.00324.18
8.2.140.0090.00024.66
8.2.130.0000.01426.16
8.2.120.0070.00319.33
8.2.110.0050.00522.07
8.2.100.0080.00317.72
8.2.90.0040.00419.40
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0000.00817.93
8.2.50.0080.00018.07
8.2.40.0030.00618.16
8.2.30.0040.00718.17
8.2.20.0000.00717.73
8.2.10.0030.00517.75
8.2.00.0030.00517.73
8.1.280.0150.00625.92
8.1.270.0040.00422.20
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0000.00923.75
8.1.230.0110.00019.10
8.1.220.0030.00517.79
8.1.210.0060.00318.77
8.1.200.0060.00317.48
8.1.190.0040.00417.64
8.1.180.0080.00018.10
8.1.170.0040.00418.69
8.1.160.0000.00722.01
8.1.150.0000.00718.84
8.1.140.0000.00717.57
8.1.130.0000.00717.90
8.1.120.0070.00017.54
8.1.110.0000.00717.39
8.1.100.0020.00517.58
8.1.90.0000.00717.36
8.1.80.0040.00417.41
8.1.70.0000.00717.55
8.1.60.0060.00317.55
8.1.50.0040.00417.57
8.1.40.0000.00717.49
8.1.30.0040.00417.57
8.1.20.0040.00417.77
8.1.10.0050.00217.63
8.1.00.0040.00417.57
8.0.300.0000.00718.77
8.0.290.0040.00417.16
8.0.280.0000.00718.39
8.0.270.0000.00717.25
8.0.260.0030.00316.95
8.0.250.0000.00716.96
8.0.240.0000.00717.05
8.0.230.0030.00317.02
8.0.220.0030.00317.04
8.0.210.0000.00717.05
8.0.200.0000.00617.07
8.0.190.0000.00817.03
8.0.180.0060.00316.96
8.0.170.0070.00016.89
8.0.160.0040.00417.03
8.0.150.0000.00716.80
8.0.140.0030.00316.95
8.0.130.0000.00513.44
8.0.120.0040.00416.93
8.0.110.0080.00016.89
8.0.100.0070.00016.90
8.0.90.0040.00416.86
8.0.80.0130.00616.92
8.0.70.0000.00716.99
8.0.60.0000.00716.84
8.0.50.0050.00216.81
8.0.30.0110.01117.19
8.0.20.0120.00617.40
8.0.10.0000.00717.09
8.0.00.0130.00716.80
7.4.330.0000.00515.07
7.4.320.0070.00016.54
7.4.300.0000.00716.67
7.4.290.0030.00316.68
7.4.280.0000.00716.68
7.4.270.0000.00716.72
7.4.260.0080.00016.55
7.4.250.0040.00416.56
7.4.240.0040.00316.63
7.4.230.0000.00716.62
7.4.220.0220.00716.61
7.4.210.0070.00716.69
7.4.200.0070.00016.41
7.4.190.0030.00316.74
7.4.160.0100.00516.40
7.4.150.0030.01417.40
7.4.140.0060.01117.86
7.4.130.0080.01116.67
7.4.120.0050.01616.63
7.4.110.0070.01716.43
7.4.100.0030.01416.66
7.4.90.0100.01016.41
7.4.80.0060.01119.39
7.4.70.0030.01316.50
7.4.60.0070.01016.55
7.4.50.0030.00516.44
7.4.40.0050.00622.77
7.4.30.0040.01416.36
7.4.00.0120.00315.14
7.3.330.0050.00013.28
7.3.320.0000.00513.18
7.3.310.0020.00516.20
7.3.300.0030.00316.38
7.3.290.0170.00316.43
7.3.280.0100.00916.40
7.3.270.0070.00717.40
7.3.260.0030.01516.34
7.3.250.0100.00716.54
7.3.240.0070.01116.52
7.3.230.0150.00616.42
7.3.210.0080.00816.44
7.3.200.0070.01319.39
7.3.190.0090.00916.62
7.3.180.0130.00316.38
7.3.170.0070.01016.39
7.3.160.0130.00716.28
7.3.120.0070.00715.02
7.2.330.0100.00816.58
7.2.320.0080.01116.43
7.2.310.0030.01316.64
7.2.300.0070.01016.67
7.2.290.0060.01616.47
7.2.60.0120.00416.66
7.2.50.0050.00516.86
7.1.200.0130.00715.91
7.1.100.0090.00618.24
7.1.70.0000.00717.07
7.1.60.0070.01719.82
7.1.50.0040.01817.14
7.1.00.0070.07322.36
7.0.200.0070.00716.82
7.0.140.0070.07321.92
7.0.60.0100.08019.84
7.0.50.0100.04317.82
7.0.40.0070.07020.09
7.0.30.0200.03720.18
7.0.20.0200.05320.11
7.0.10.0070.05020.29
7.0.00.0030.08320.25
5.6.280.0000.07720.80
5.6.210.0230.07320.69
5.6.200.0100.07018.16
5.6.190.0230.07320.57
5.6.180.0300.03720.41
5.6.170.0230.05720.37
5.6.160.0030.07720.51
5.6.150.0100.07718.18
5.6.140.0070.06718.20
5.6.130.0030.07018.18
5.6.120.0070.07721.08
5.6.110.0100.08721.02
5.6.100.0070.08021.13
5.6.90.0100.05021.10
5.6.80.0100.08020.35
5.6.70.4730.03720.49
5.5.350.0070.08720.39
5.5.340.0070.07317.91
5.5.330.0100.04720.20
5.5.320.0300.06020.32
5.5.310.0230.04320.34
5.5.300.0000.08718.01
5.5.290.0070.08018.01
5.5.280.0070.04020.65
5.5.270.0100.08020.67
5.5.260.0200.05020.95
5.5.250.0100.07720.69
5.5.240.0030.07720.25
5.4.450.0500.03719.26
5.4.440.1000.08319.45
5.4.430.0730.00019.13
5.4.420.1600.00019.24
5.4.410.0070.05718.95
5.4.400.0170.05318.49
5.4.390.0030.05718.71
5.4.380.0370.06718.56
5.4.370.0170.05318.72
5.4.360.0230.04718.61
5.4.350.0400.05018.46
5.4.340.0230.05318.74
5.4.320.0070.03512.45
5.4.310.0090.03812.45
5.4.300.0090.03412.45
5.4.290.0070.03712.46
5.4.280.0050.04412.35
5.4.270.0030.06318.88
5.4.260.0070.07318.99
5.4.250.0100.08018.79
5.4.240.0170.07018.94
5.4.230.0100.05318.96
5.4.220.0130.05019.03
5.4.210.0070.08319.06
5.4.200.0070.08318.98
5.4.190.0130.05018.90
5.4.180.0100.05319.06
5.4.170.0070.06018.91
5.4.160.0170.05018.83
5.4.150.0100.06319.02
5.4.140.0100.05016.25
5.4.130.0000.06016.38
5.4.120.0070.07316.59
5.4.110.0170.05316.60
5.4.100.0070.07316.35
5.4.90.0270.04716.44
5.4.80.0070.05016.38
5.4.70.0070.05316.56
5.4.60.0070.05016.32
5.4.50.0030.05316.58
5.4.40.0130.04316.63
5.4.30.0100.05316.48
5.4.20.0070.05316.55
5.4.10.0130.05316.57
5.4.00.0100.05015.92
5.3.290.0080.03812.80
5.3.280.0130.05014.75
5.3.270.0100.05314.71
5.3.260.0070.06314.59
5.3.250.0170.04714.72
5.3.240.0070.05314.59
5.3.230.0170.06314.58
5.3.220.0200.06714.55
5.3.210.0170.04714.70
5.3.200.0200.04314.62
5.3.190.0130.05714.70
5.3.180.0130.06314.70
5.3.170.0170.05014.71
5.3.160.0070.05014.54
5.3.150.0130.06714.76
5.3.140.0100.06014.48
5.3.130.0070.05314.72
5.3.120.0030.06014.68
5.3.110.0030.06314.72
5.3.100.0130.06013.96
5.3.90.0170.06013.83
5.3.80.0130.05314.13
5.3.70.0130.05314.00
5.3.60.0130.06313.99
5.3.50.0170.06314.12
5.3.40.0000.07314.14
5.3.30.0070.06013.71
5.3.20.0070.06013.77
5.3.10.0170.05713.72
5.3.00.0100.06313.45
5.2.170.0130.05311.38
5.2.160.0000.04711.12
5.2.150.0030.04711.13
5.2.140.0200.05311.25
5.2.130.0030.04311.33
5.2.120.0070.04011.29
5.2.110.0100.04311.08
5.2.100.0100.05011.03
5.2.90.0070.04011.24
5.2.80.0130.04711.14
5.2.70.0100.05711.02
5.2.60.0070.04011.04
5.2.50.0070.04311.00
5.2.40.0030.05011.11
5.2.30.0100.03710.80
5.2.20.0070.04011.18
5.2.10.0030.04311.14
5.2.00.0270.04010.76
5.1.60.0000.05310.30
5.1.50.0070.03710.32
5.1.40.0030.03710.27
5.1.30.0070.03710.61
5.1.20.0030.05310.39
5.1.10.0100.03710.09
5.1.00.0130.03010.29
5.0.50.0130.0278.42
5.0.40.0070.0238.45
5.0.30.0000.0478.09
5.0.20.0000.0378.38
5.0.10.0070.0278.45
5.0.00.0100.0408.36
4.4.90.0070.0277.55
4.4.80.0030.0237.55
4.4.70.0100.0137.55
4.4.60.0030.0277.55
4.4.50.0100.0237.55
4.4.40.0030.0437.55
4.4.30.0000.0337.55
4.4.20.0100.0207.55
4.4.10.0000.0277.54
4.4.00.0030.0337.54
4.3.110.0070.0207.54
4.3.100.0070.0237.54
4.3.90.0030.0277.54
4.3.80.0030.0407.54
4.3.70.0000.0337.54
4.3.60.0000.0237.54
4.3.50.0070.0207.54
4.3.40.0000.0377.54
4.3.30.0070.0207.54
4.3.20.0030.0207.54
4.3.10.0030.0207.54
4.3.00.0030.01015.59

preferences:
40.54 ms | 401 KiB | 5 Q