3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_internal_encoding('UTF-8'); $content = 'MariƱe'; 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.00618.30
8.3.50.0070.00716.39
8.3.40.0110.00418.63
8.3.30.0160.00418.59
8.3.20.0040.00420.16
8.3.10.0040.00421.70
8.3.00.0020.00519.66
8.2.180.0040.01116.63
8.2.170.0110.00422.96
8.2.160.0090.01219.08
8.2.150.0000.00924.18
8.2.140.0000.00724.66
8.2.130.0040.00419.38
8.2.120.0000.00726.35
8.2.110.0040.00420.56
8.2.100.0080.00317.91
8.2.90.0040.00419.24
8.2.80.0000.00817.97
8.2.70.0070.00417.62
8.2.60.0040.00418.04
8.2.50.0080.00018.10
8.2.40.0000.00820.38
8.2.30.0020.00519.24
8.2.20.0000.00718.27
8.2.10.0040.00418.09
8.2.00.0030.00618.20
8.1.280.0140.00325.92
8.1.270.0000.00822.14
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0080.00020.92
8.1.230.0060.00619.21
8.1.220.0080.00017.74
8.1.210.0050.00518.77
8.1.200.0060.00317.36
8.1.190.0000.00917.36
8.1.180.0060.00318.10
8.1.170.0060.00318.78
8.1.160.0040.00418.96
8.1.150.0040.00419.02
8.1.140.0020.00519.56
8.1.130.0030.00318.90
8.1.120.0070.00017.56
8.1.110.0030.00617.48
8.1.100.0040.00417.54
8.1.90.0040.00417.50
8.1.80.0000.00717.52
8.1.70.0030.00317.56
8.1.60.0040.00417.55
8.1.50.0080.00017.58
8.1.40.0000.00817.46
8.1.30.0030.00617.67
8.1.20.0040.00417.73
8.1.10.0040.00417.55
8.1.00.0030.00517.52
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0040.00418.52
8.0.270.0040.00417.25
8.0.260.0070.00016.93
8.0.250.0030.00316.93
8.0.240.0000.00917.02
8.0.230.0000.00717.09
8.0.220.0080.00017.00
8.0.210.0070.00016.94
8.0.200.0000.00616.92
8.0.190.0030.00616.96
8.0.180.0070.00017.03
8.0.170.0030.00316.92
8.0.160.0000.00717.03
8.0.150.0000.00816.90
8.0.140.0000.00716.84
8.0.130.0000.00513.36
8.0.120.0030.00616.94
8.0.110.0040.00416.93
8.0.100.0070.00016.84
8.0.90.0050.00316.99
8.0.80.0090.00616.93
8.0.70.0040.00416.83
8.0.60.0070.00016.93
8.0.50.0040.00417.02
8.0.30.0080.00917.17
8.0.20.0080.01017.40
8.0.10.0000.00717.02
8.0.00.0140.00316.63
7.4.330.0000.00515.55
7.4.320.0030.00316.59
7.4.300.0030.00316.50
7.4.290.0000.00716.59
7.4.280.0000.00716.58
7.4.270.0070.00016.68
7.4.260.0000.00716.46
7.4.250.0030.00316.66
7.4.240.0000.00716.61
7.4.230.0040.00416.70
7.4.220.0090.00916.78
7.4.210.0080.01016.64
7.4.200.0000.00716.76
7.4.160.0070.01016.48
7.4.150.0120.00617.40
7.4.140.0090.00917.86
7.4.130.0220.00216.63
7.4.120.0100.01116.57
7.4.110.0070.01016.49
7.4.100.0030.01416.41
7.4.90.0040.01216.54
7.4.80.0250.01319.39
7.4.70.0030.01316.54
7.4.60.0030.01316.65
7.4.50.0100.00716.46
7.4.40.0030.01316.46
7.4.30.0070.01016.63
7.4.00.0030.00915.01
7.3.330.0000.00613.23
7.3.320.0000.00613.18
7.3.310.0020.00516.11
7.3.300.0070.00016.23
7.3.290.0070.00016.38
7.3.280.0140.00516.33
7.3.270.0070.01117.40
7.3.260.0150.00716.40
7.3.250.0100.01016.29
7.3.240.0100.00716.39
7.3.230.0090.02216.48
7.3.210.0030.01416.21
7.3.200.0120.00916.29
7.3.190.0060.01016.63
7.3.180.0160.00016.25
7.3.170.0130.00316.54
7.3.160.0000.01716.38
7.3.10.0070.00316.72
7.3.00.0070.00716.29
7.2.330.0170.00316.71
7.2.320.0030.01516.54
7.2.310.0130.00316.73
7.2.300.0100.00716.30
7.2.290.0120.00316.36
7.2.130.0110.00016.62
7.2.120.0030.01316.92
7.2.110.0030.00716.77
7.2.100.0060.00616.69
7.2.90.0060.00316.95
7.2.80.0040.01116.88
7.2.70.0030.00616.88
7.2.60.0590.01115.97
7.2.50.0030.00716.78
7.2.40.0060.00616.90
7.2.30.0040.00716.68
7.2.20.0070.00316.57
7.2.10.0110.00316.70
7.2.00.0030.01018.10
7.1.250.0030.00915.84
7.1.200.0100.00315.82
7.1.100.0040.00718.10
7.1.70.0260.00815.56
7.1.60.0480.01133.23
7.1.50.0370.01633.07
7.1.40.0290.01232.62
7.1.30.0400.00432.73
7.1.20.0430.01032.57
7.1.10.0250.01314.80
7.1.00.0230.01014.88
7.0.200.0290.00814.92
7.0.190.0220.01314.90
7.0.180.0130.01614.26
7.0.170.0170.01214.24
7.0.160.0190.02014.39
7.0.150.0240.01114.30
7.0.140.0160.01114.55
7.0.130.0110.01514.36
7.0.120.0230.01314.54
7.0.110.0290.01114.42
7.0.100.0210.01214.39
7.0.90.0240.00614.31
7.0.80.0180.01114.43
7.0.70.0250.00814.37
7.0.60.0240.01114.39
7.0.50.0120.01514.77
7.0.40.0170.01914.72
7.0.30.0230.01514.52
7.0.20.0320.00414.69
7.0.10.0220.00614.70
7.0.00.0340.01014.58

preferences:
44.58 ms | 400 KiB | 5 Q