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_TITLE, "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.0110.01118.43
8.3.50.0070.01021.94
8.3.40.0090.00618.80
8.3.30.0070.01118.96
8.3.20.0000.00720.30
8.3.10.0030.00622.04
8.3.00.0100.00722.45
8.2.180.0120.00316.75
8.2.170.0140.00022.96
8.2.160.0030.01020.93
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00417.50
8.2.110.0030.00722.30
8.2.100.0060.00617.81
8.2.90.0040.00419.22
8.2.80.0080.00018.04
8.2.70.0060.00317.75
8.2.60.0040.00418.03
8.2.50.0080.00018.07
8.2.40.0040.00418.09
8.2.30.0000.00918.02
8.2.20.0000.00717.74
8.2.10.0050.00317.81
8.2.00.0000.00717.75
8.1.280.0030.01025.92
8.1.270.0040.00422.08
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0000.00923.64
8.1.230.0050.00519.10
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0030.00617.78
8.1.180.0000.00818.10
8.1.170.0060.00318.77
8.1.160.0000.00721.95
8.1.150.0040.00418.89
8.1.140.0000.00817.52
8.1.130.0080.00017.97
8.1.120.0040.00317.55
8.1.110.0000.00717.43
8.1.100.0070.00017.58
8.1.90.0000.00717.43
8.1.80.0000.00717.47
8.1.70.0030.00317.55
8.1.60.0000.00817.60
8.1.50.0040.00417.63
8.1.40.0030.00617.61
8.1.30.0000.00717.77
8.1.20.0040.00417.74
8.1.10.0030.00517.48
8.1.00.0040.00417.38
8.0.300.0040.00318.77
8.0.290.0060.00317.16
8.0.280.0070.00018.42
8.0.270.0000.00717.26
8.0.260.0030.00316.84
8.0.250.0000.00616.96
8.0.240.0070.00016.91
8.0.230.0030.00317.00
8.0.220.0030.00317.03
8.0.210.0060.00017.12
8.0.200.0060.00017.02
8.0.190.0040.00417.02
8.0.180.0070.00016.93
8.0.170.0000.00817.06
8.0.160.0000.00716.93
8.0.150.0070.00016.96
8.0.140.0000.00716.96
8.0.130.0000.00513.40
8.0.120.0040.00416.95
8.0.110.0080.00016.88
8.0.100.0040.00416.99
8.0.90.0040.00416.88
8.0.80.0070.01017.02
8.0.70.0070.00017.06
8.0.60.0040.00416.80
8.0.50.0000.00817.02
8.0.30.0140.01317.12
8.0.20.0110.00817.40
8.0.10.0040.00416.91
8.0.00.0080.01316.76
7.4.330.0030.00315.02
7.4.320.0030.00316.68
7.4.300.0030.00316.61
7.4.290.0030.00316.62
7.4.280.0000.00816.55
7.4.270.0000.00816.52
7.4.260.0060.00016.63
7.4.250.0070.00016.63
7.4.240.0000.00716.61
7.4.230.0030.00316.44
7.4.220.0210.00316.59
7.4.210.0080.00816.65
7.4.200.0000.00816.77
7.4.190.0030.00316.50
7.4.160.0030.01716.58
7.4.150.0180.00017.40
7.4.140.0080.01117.86
7.4.130.0080.01016.60
7.4.120.0050.01316.39
7.4.110.0030.01616.55
7.4.100.0150.01216.60
7.4.90.0130.01416.49
7.4.80.0100.01319.39
7.4.70.0160.00016.45
7.4.60.0150.00416.36
7.4.50.0040.00416.53
7.4.40.0030.01022.77
7.4.30.0060.01016.56
7.4.00.0060.01214.96
7.3.330.0030.00213.23
7.3.320.0050.00013.09
7.3.310.0040.00416.20
7.3.300.0000.00616.38
7.3.290.0070.01016.25
7.3.280.0100.00716.36
7.3.270.0120.00417.40
7.3.260.0140.00316.31
7.3.250.0030.01816.37
7.3.240.0000.01616.30
7.3.230.0120.00616.59
7.3.210.0030.01616.32
7.3.200.0090.01019.39
7.3.190.0080.00816.46
7.3.180.0130.00316.59
7.3.170.0040.01116.41
7.3.160.0090.00616.24
7.3.120.0030.00614.66
7.2.330.0140.00416.74
7.2.320.0060.01416.48
7.2.310.0000.01716.43
7.2.300.0100.00716.63
7.2.290.0110.00516.45
7.2.00.0090.00319.34
7.1.200.0000.00915.88
7.1.100.0000.01418.12
7.1.70.0030.00717.18
7.1.60.0100.01419.82
7.1.50.0060.01617.03
7.1.00.0030.07722.42
7.0.200.0090.00616.66
7.0.140.0000.07722.12
7.0.60.0030.04020.08
7.0.50.0000.05317.88
7.0.40.0170.08320.24
7.0.30.0200.05720.00
7.0.20.0270.07320.23
7.0.10.0200.05020.18
7.0.00.0100.08320.17
5.6.280.0030.07321.02
5.6.210.0100.08320.72
5.6.200.0000.05018.09
5.6.190.0070.07720.77
5.6.180.3170.05020.42
5.6.170.0270.04020.33
5.6.160.0030.04320.71
5.6.150.0100.04318.16
5.6.140.0030.05718.21
5.6.130.0070.07718.09
5.6.120.0030.04720.98
5.6.110.0130.06721.04
5.6.100.0070.08021.02
5.6.90.0030.04320.99
5.6.80.0130.06720.35
5.5.350.0030.07320.41
5.5.340.0070.03717.98
5.5.330.0100.04320.14
5.5.320.0170.04320.41
5.5.310.0170.04020.20
5.5.300.0030.08717.97
5.5.290.0030.08718.01
5.5.280.0100.08020.96
5.5.270.0000.04720.61
5.5.260.0030.07320.79
5.5.250.0130.07720.61
5.5.240.0100.06720.17
5.4.450.0370.04719.15
5.4.440.0130.07719.48
5.4.430.1100.00019.36
5.4.420.1300.00019.48
5.4.410.0070.05718.72
5.4.400.0170.07018.69
5.4.390.0070.05318.41
5.4.380.0230.06318.68
5.4.370.0230.04718.68
5.4.360.0170.05318.50
5.4.350.0170.05718.73
5.4.340.0230.04718.74
5.4.320.0110.03112.46
5.4.310.0030.04012.45
5.4.300.0090.04512.46
5.4.290.0080.03912.45
5.4.280.0070.04012.35
5.4.270.0200.05718.90
5.4.260.0030.06018.93
5.4.250.0130.07018.91
5.4.240.0130.04718.90
5.4.230.0070.05718.70
5.4.220.0130.07718.88
5.4.210.0170.05018.84
5.4.200.0130.06318.79
5.4.190.0070.05719.11
5.4.180.0170.05318.70
5.4.170.0030.06018.89
5.4.160.0200.05018.88
5.4.150.0200.07018.91
5.4.140.0130.05316.30
5.4.130.0130.04316.45
5.4.120.0130.04716.35
5.4.110.0130.05016.57
5.4.100.0070.06316.30
5.4.90.0170.05016.46
5.4.80.0000.06016.48
5.4.70.0070.06016.32
5.4.60.0100.06716.27
5.4.50.0130.06716.43
5.4.40.0100.06316.41
5.4.30.0100.04716.47
5.4.20.0100.04716.47
5.4.10.0100.07316.44
5.4.00.0230.03715.81
5.3.290.0090.04512.80
5.3.280.0070.06714.73
5.3.270.0170.05014.58
5.3.260.0070.05714.80
5.3.250.0070.06714.59
5.3.240.0170.05714.41
5.3.230.0100.05014.60
5.3.220.0170.04314.55
5.3.210.0130.05014.71
5.3.200.0130.07014.65
5.3.190.0070.07014.71
5.3.180.0100.05014.63
5.3.170.0100.07014.60
5.3.160.0130.04714.71
5.3.150.0030.08014.72
5.3.140.0130.04314.66
5.3.130.0030.05714.53
5.3.120.0130.07714.55
5.3.110.0070.07714.53
5.3.100.0070.05314.02
5.3.90.0130.05013.98
5.3.80.0100.04714.08
5.3.70.0170.05314.00
5.3.60.0100.05014.05
5.3.50.0170.04014.00
5.3.40.0100.05713.91
5.3.30.0030.05313.98
5.3.20.0100.06313.68
5.3.10.0070.06313.84
5.3.00.0170.06013.45
5.2.170.0030.04311.04
5.2.160.0170.02711.19
5.2.150.0000.06711.36
5.2.140.0070.04011.27
5.2.130.0170.04711.25
5.2.120.0100.04311.23
5.2.110.0030.04311.02
5.2.100.0070.05010.91
5.2.90.0100.04011.33
5.2.80.0030.05011.20
5.2.70.0000.05311.21
5.2.60.0070.04311.03
5.2.50.0130.03711.12
5.2.40.0070.04010.93
5.2.30.0070.04311.11
5.2.20.0070.05711.18
5.2.10.0100.05311.04
5.2.00.0100.05710.79
5.1.60.0070.03710.30
5.1.50.0030.0479.96
5.1.40.0030.04010.27
5.1.30.0130.04310.53
5.1.20.0070.05710.47
5.1.10.0030.0409.94
5.1.00.0030.05710.04
5.0.50.0030.0438.70
5.0.40.0030.0408.43
5.0.30.0070.0538.45
5.0.20.0070.0308.49
5.0.10.0070.0278.46
5.0.00.0100.0378.44
4.4.90.0000.0277.59
4.4.80.0070.0177.59
4.4.70.0030.0307.59
4.4.60.0070.0237.59
4.4.50.0030.0307.59
4.4.40.0100.0407.59
4.4.30.0030.0237.59
4.4.20.0030.0277.59
4.4.10.0000.0237.59
4.4.00.0070.0407.59
4.3.110.0070.0207.59
4.3.100.0100.0177.59
4.3.90.0070.0177.59
4.3.80.0070.0307.59
4.3.70.0100.0137.59
4.3.60.0030.0277.59
4.3.50.0030.0237.59
4.3.40.0000.0437.59
4.3.30.0000.0237.59
4.3.20.0030.0277.59
4.3.10.0030.0237.59
4.3.00.0030.0206.46

preferences:
52.18 ms | 401 KiB | 5 Q