3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = 'test:test'; $encodings = ['UTF-8', 'SJIS', 'GB2312', 'ISO-8859-1', 'ISO-8859-2', 'ISO-8859-3', 'ISO-8859-4', 'ISO-8859-5', 'ISO-8859-6', 'ISO-8859-7', 'ISO-8859-8', 'ISO-8859-9', 'ISO-8859-10', 'ISO-8859-13', 'ISO-8859-14', 'ISO-8859-15', 'ISO-8859-16', 'WINDOWS-1252', 'WINDOWS-1251', 'EUC-JP', 'EUC-TW', 'KOI8-R', 'BIG-5', 'ISO-2022-KR', 'ISO-2022-JP', 'UTF-16' ]; echo mb_detect_encoding($test, $encodings);

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.01116.38
8.3.50.0030.01118.14
8.3.40.0100.00318.79
8.3.30.0110.00418.59
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0030.00526.16
8.2.180.0140.00725.92
8.2.170.0140.00719.08
8.2.160.0130.00022.96
8.2.150.0040.00425.66
8.2.140.0050.00224.66
8.2.130.0000.00726.16
8.2.120.0050.00326.16
8.2.110.0090.00020.78
8.2.100.0060.00617.97
8.2.90.0050.00319.46
8.2.80.0090.00018.86
8.2.70.0000.00917.75
8.2.60.0040.00418.05
8.2.50.0030.00518.07
8.2.40.0000.00918.16
8.2.30.0000.00718.26
8.2.20.0040.00419.42
8.2.10.0050.00217.90
8.2.00.0040.00419.29
8.1.280.0070.00725.92
8.1.270.0070.00023.99
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0030.00623.89
8.1.230.0120.00022.30
8.1.220.0060.00317.86
8.1.210.0000.00818.77
8.1.200.0060.00317.59
8.1.190.0040.00417.36
8.1.180.0040.00418.10
8.1.170.0150.00218.37
8.1.160.0040.00419.01
8.1.150.0000.00718.80
8.1.140.0040.00417.48
8.1.130.0000.00717.48
8.1.120.0000.00717.59
8.1.110.0050.00317.63
8.1.100.0080.00017.57
8.1.90.0030.00517.57
8.1.80.0040.00417.56
8.1.70.0000.00717.52
8.1.60.0020.00517.67
8.1.50.0040.00417.64
8.1.40.0090.00017.63
8.1.30.0000.00917.73
8.1.20.0090.00017.78
8.1.10.0030.00617.57
8.1.00.0080.00017.54
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.47
8.0.270.0030.00318.16
8.0.260.0000.00716.99
8.0.250.0000.00716.97
8.0.240.0000.00717.00
8.0.230.0000.00717.02
8.0.220.0050.00216.90
8.0.210.0030.00316.89
8.0.200.0040.00416.87
8.0.190.0030.00616.94
8.0.180.0040.00416.89
8.0.170.0040.00416.84
8.0.160.0000.00716.95
8.0.150.0000.00816.77
8.0.140.0000.00716.89
8.0.130.0000.00513.38
8.0.120.0090.00016.79
8.0.110.0020.00516.77
8.0.100.0040.00416.96
8.0.90.0040.00417.01
8.0.80.0000.00716.93
8.0.70.0040.00416.77
8.0.60.0000.00716.93
8.0.50.0040.00416.99
8.0.30.0040.00416.81
8.0.20.0000.00716.96
8.0.10.0000.00717.08
8.0.00.0040.00416.91
7.4.330.0020.00215.55
7.4.320.0000.00716.68
7.4.300.0000.00716.63
7.4.290.0070.00016.64
7.4.280.0030.00516.50
7.4.270.0030.00316.55
7.4.260.0000.00613.21
7.4.250.0030.00316.64
7.4.240.0000.00816.64
7.4.230.0030.00316.66
7.4.220.0040.00416.58
7.4.210.0070.00016.45
7.4.200.0030.00316.52
7.4.190.0000.00716.74
7.4.180.0060.00316.71
7.4.160.0030.00316.61
7.4.150.0040.00416.63
7.4.140.0060.00316.58
7.4.130.0050.00316.65
7.4.120.0050.00416.57
7.4.110.0040.00416.41
7.4.100.0050.00316.65
7.4.90.0050.00316.46
7.4.80.0080.00016.53
7.4.70.0090.00016.46
7.4.60.0000.00816.58
7.4.50.0060.00316.52
7.4.40.0000.00816.48
7.4.30.0040.00416.56
7.4.20.0050.00316.50
7.4.10.0030.00616.58
7.4.00.0030.00616.61
7.3.330.0030.00316.29
7.3.320.0030.00513.05
7.3.310.0030.00316.12
7.3.300.0030.00316.17
7.3.290.0030.00316.09
7.3.280.0000.00616.22
7.3.270.0070.00016.25
7.3.260.0000.00716.11
7.3.250.0000.00716.29
7.3.240.0040.00416.01
7.3.230.0070.00016.20
7.3.220.0020.00516.07
7.3.210.0020.00516.05
7.3.200.0030.00616.14
7.3.190.0000.00916.15
7.3.180.0000.01016.32
7.3.170.0050.00316.11
7.3.160.0030.00516.14
7.3.150.0040.00416.18
7.3.140.0040.00416.22
7.3.130.0040.00416.11
7.3.120.0030.00616.22
7.3.110.0000.00816.11
7.3.100.0050.00516.09
7.3.90.0040.00416.58
7.3.80.0050.00316.13
7.3.70.0020.00516.36
7.3.60.0020.00516.55
7.3.50.0000.00716.27
7.3.40.0040.00416.31
7.3.30.0050.00316.29
7.3.20.0070.00018.30
7.3.10.0030.00618.07
7.3.00.0070.00018.05

preferences:
55.22 ms | 400 KiB | 5 Q