3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Total%20M%C4%81ori%2C31.5%2C33.3%2C31.8%2C33%2C36.4%2C33.2%2C33.2'; $rawstr = rawurldecode($str); var_dump( mb_detect_encoding($rawstr, ['UTF-8', 'ISO-8859-1', 'WINDOWS-1251']), mb_detect_encoding($rawstr, ['ISO-8859-1', 'WINDOWS-1251', 'UTF-8']), mb_detect_encoding($rawstr, ['WINDOWS-1251', 'UTF-8', 'ISO-8859-1']), mb_check_encoding($rawstr, 'ISO-8859-1'), mb_check_encoding($rawstr, 'UTF-8'), mb_check_encoding($rawstr, 'WINDOWS-1251'), );

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.5.10.0080.01016.64
8.5.00.0080.01219.85
8.4.160.0110.01125.34
8.4.150.0020.00014.05
8.4.140.0080.01217.35
8.4.130.0130.00818.88
8.4.120.0060.01023.64
8.4.110.0090.00920.53
8.4.100.0110.01017.63
8.4.90.0060.00318.39
8.4.80.0150.00617.68
8.4.70.0100.01117.88
8.4.60.0130.00720.44
8.4.50.0060.00220.39
8.4.40.0100.01018.68
8.4.30.0040.00422.41
8.4.20.0130.00322.68
8.4.10.0120.00624.01
8.3.280.0100.00918.28
8.3.270.0080.01116.35
8.3.260.0150.00416.51
8.3.250.0110.00818.89
8.3.240.0140.00516.69
8.3.230.0050.00416.51
8.3.220.0120.00917.07
8.3.210.0070.00218.08
8.3.200.0040.00516.33
8.3.190.0120.00616.70
8.3.180.0120.00716.39
8.3.170.0090.00916.87
8.3.160.0040.01416.93
8.3.150.0130.00717.11
8.3.140.0090.00616.19
8.3.130.0040.00416.57
8.3.120.0100.00020.69
8.3.110.0060.00320.94
8.3.100.0130.00624.06
8.3.90.0100.01026.77
8.3.80.0090.00017.97
8.3.70.0090.00918.31
8.3.60.0070.01016.50
8.3.50.0100.01016.42
8.3.40.0100.00721.70
8.3.30.0090.00620.21
8.3.20.0050.00324.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.290.0120.00620.32
8.2.280.0050.00318.46
8.2.270.0110.00717.05
8.2.260.0110.00416.75
8.2.250.0140.00318.58
8.2.240.0030.00617.33
8.2.230.0200.00022.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0090.00016.50
8.2.190.0150.00318.50
8.2.180.0110.00716.88
8.2.170.0090.00619.04
8.2.160.0120.00322.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00821.08
8.2.110.0060.00320.64
8.2.100.0000.01217.59
8.2.90.0230.00318.67
8.2.80.0200.00317.92
8.2.70.0140.00718.58
8.2.60.0160.00518.54
8.2.50.0190.00418.66
8.2.40.0160.00618.05
8.2.30.0160.00518.66
8.2.20.0130.00618.04
8.2.10.0130.00617.95
8.2.00.0110.00718.42
8.1.330.0070.01023.71
8.1.320.0110.00816.29
8.1.310.0120.00016.56
8.1.300.0160.00318.68
8.1.290.0000.01230.84
8.1.280.0110.00725.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0070.00728.09
8.1.240.0060.00324.08
8.1.230.0030.00920.87
8.1.220.0130.00417.87
8.1.210.0180.00318.34
8.1.200.0100.00817.83
8.1.190.0150.00517.74
8.1.180.0150.00618.36
8.1.170.0110.00817.71
8.1.160.0180.00317.78
8.1.150.0140.00517.83
8.1.140.0120.00517.63
8.1.130.0140.00517.87
8.1.120.0140.00518.42
8.1.110.0130.00517.66
8.1.100.0090.01017.88
8.1.90.0130.00618.33
8.1.80.0130.00817.79
8.1.70.0180.00418.51
8.1.60.0210.00317.99
8.1.50.0160.00618.50
8.1.40.0200.00317.88
8.1.30.0130.00818.08
8.1.20.0180.00417.92
8.1.10.0150.00718.00
8.1.00.0160.00518.51
8.0.300.0160.00217.44
8.0.290.0130.00717.44
8.0.280.0150.00517.51
8.0.270.0150.00617.44
8.0.260.0140.00718.06
8.0.250.0150.00617.44
8.0.240.0160.00518.06
8.0.230.0160.00517.51
8.0.220.0170.00417.44
8.0.210.0220.00417.35
8.0.200.0180.00717.44
8.0.190.0220.00317.31
8.0.180.0180.00817.27
8.0.170.0240.00017.40
8.0.160.0190.00417.36
8.0.150.0160.00817.36
8.0.140.0180.00517.44
8.0.130.0140.00817.38
8.0.120.0150.00717.40
8.0.110.0200.00217.36
8.0.100.0180.00617.31
8.0.90.0220.00117.31
8.0.80.0250.00317.40
8.0.70.0240.00217.44
8.0.60.0230.00217.31
8.0.50.0210.00317.31
8.0.30.0220.00217.43
8.0.20.0180.00617.44
8.0.10.0170.00817.40

preferences:
98.69 ms | 403 KiB | 5 Q