3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'укгезәөшөхзәхөшк2049һһлдябчсячмииюсит.июбҗрарэ'; /* Detect character encoding with current detect_order */ echo mb_detect_encoding($str)."\n"; /* "auto" is expanded according to mbstring.language */ echo mb_detect_encoding($str, "auto")."\n"; /* Specify encoding_list character encoding by comma separated list */ echo mb_detect_encoding($str, "JIS, eucjp-win, sjis-win")."\n"; /* Use array to specify encoding_list */ $ary[] = "ASCII"; $ary[] = "JIS"; $ary[] = "EUC-JP"; echo mb_detect_encoding($str, $ary);

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.0100.01018.56
8.3.50.0150.00821.99
8.3.40.0070.00718.71
8.3.30.0090.00618.54
8.3.20.0000.00818.65
8.3.10.0060.00321.16
8.3.00.0080.00021.79
8.2.180.0150.00016.75
8.2.170.0110.00422.96
8.2.160.0070.00720.45
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0150.00326.16
8.2.120.0080.00019.61
8.2.110.0070.00320.79
8.2.100.0090.00318.03
8.2.90.0000.00819.39
8.2.80.0040.00418.18
8.2.70.0040.00417.88
8.2.60.0040.00418.29
8.2.50.0050.00318.07
8.2.40.0060.00318.34
8.2.30.0000.00920.14
8.2.20.0000.00817.89
8.2.10.0040.00417.84
8.2.00.0080.00017.84
8.1.280.0130.00925.92
8.1.270.0000.00723.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.77
8.1.230.0070.00421.14
8.1.220.0000.00818.77
8.1.210.0030.00519.14
8.1.200.0060.00317.48
8.1.190.0080.00019.44
8.1.180.0080.00018.10
8.1.170.0000.00818.83
8.1.160.0040.00418.94
8.1.150.0000.00918.81
8.1.140.0050.00317.54
8.1.130.0030.00317.89
8.1.120.0050.00217.52
8.1.110.0040.00417.56
8.1.100.0050.00317.75
8.1.90.0040.00417.56
8.1.80.0030.00317.64
8.1.70.0030.00317.65
8.1.60.0050.00517.59
8.1.50.0000.00817.55
8.1.40.0040.00417.67
8.1.30.0000.00817.81
8.1.20.0050.00317.82
8.1.10.0040.00417.58
8.1.00.0030.00517.57
8.0.300.0000.00720.10
8.0.290.0040.00417.17
8.0.280.0000.00718.48
8.0.270.0030.00317.22
8.0.260.0000.00616.80
8.0.250.0050.00317.09
8.0.240.0060.00317.00
8.0.230.0070.00017.00
8.0.220.0000.00717.05
8.0.210.0030.00317.03
8.0.200.0000.00717.01
8.0.190.0000.00717.08
8.0.180.0000.00816.92
8.0.170.0070.00017.04
8.0.160.0030.00317.04
8.0.150.0000.00817.01
8.0.140.0060.00317.01
8.0.130.0060.00013.42
8.0.120.0080.00016.85
8.0.110.0040.00416.78
8.0.100.0070.00016.81
8.0.90.0040.00417.12
8.0.80.0120.00316.99
8.0.70.0030.00516.83
8.0.60.0030.00516.95
8.0.50.0040.00416.82
8.0.30.0110.00817.06
8.0.20.0050.01317.40
8.0.10.0050.00316.88
8.0.00.0110.00716.68
7.4.330.0050.00014.71
7.4.320.0000.00616.66
7.4.300.0070.00016.55
7.4.290.0040.00416.58
7.4.280.0050.00216.70
7.4.270.0000.00716.67
7.4.260.0030.00313.23
7.4.250.0000.00816.63
7.4.240.0000.00716.53
7.4.230.0030.00316.40
7.4.220.0120.00916.75
7.4.210.0090.00716.62
7.4.200.0000.00816.53
7.4.190.0000.00816.82
7.4.160.0130.00316.68
7.4.150.0060.01217.40
7.4.140.0070.01317.86
7.4.130.0070.00916.69
7.4.120.0080.00816.52
7.4.110.0070.01116.76
7.4.100.0000.01716.61
7.4.90.0120.00616.58
7.4.80.0060.01019.37
7.4.70.0100.01016.65
7.4.60.0100.01016.55
7.4.50.0090.00016.67
7.4.40.0070.00722.27
7.4.30.0090.00916.55
7.4.10.0040.01414.95
7.4.00.0060.01215.07
7.3.330.0050.00013.30
7.3.320.0020.00213.24
7.3.310.0000.00716.36
7.3.300.0030.00316.32
7.3.290.0080.00816.35
7.3.280.0090.00716.29
7.3.270.0120.01217.40
7.3.260.0070.01218.24
7.3.250.0070.01316.48
7.3.240.0030.01316.40
7.3.230.0120.00616.39
7.3.210.0130.00316.71
7.3.200.0070.01419.39
7.3.190.0000.01716.45
7.3.180.0130.00316.39
7.3.170.0170.00316.54
7.3.160.0060.01016.41
7.3.130.0030.01414.86
7.3.120.0100.00614.97
7.3.110.0100.00714.96
7.3.100.0050.01014.89
7.3.90.0060.00814.66
7.3.80.0050.00714.71
7.3.70.0060.00614.75
7.3.60.0070.00414.97
7.3.50.0060.00614.82
7.3.40.0070.00814.81
7.3.30.0090.00314.77
7.3.20.0060.00716.68
7.3.10.0030.00916.66
7.3.00.0070.00516.70
7.2.330.0150.00316.44
7.2.320.0070.01016.85
7.2.310.0140.00316.80
7.2.300.0090.00816.75
7.2.290.0100.00716.41
7.2.260.0120.00315.29
7.2.250.0100.00615.26
7.2.240.0070.01115.00
7.2.230.0080.00815.17
7.2.220.0060.01015.18
7.2.210.0020.01015.12
7.2.200.0070.00615.07
7.2.190.0060.00915.14
7.2.180.0060.01015.13
7.2.170.0070.00715.13
7.2.160.0040.00815.03
7.2.150.0060.01016.88
7.2.140.0030.01316.92
7.2.130.0000.01516.88
7.2.120.0050.00716.87
7.2.110.0050.00816.96
7.2.100.0070.00516.95
7.2.90.0050.01116.87
7.2.80.0060.01117.13
7.2.70.0050.00817.02
7.2.60.0070.00716.93
7.2.50.0050.01017.02
7.2.40.0080.00516.80
7.2.30.0030.01017.08
7.2.20.0050.00816.81
7.2.10.0090.00716.96
7.2.00.0050.00817.85
7.1.330.0070.00915.74
7.1.320.0060.00615.87
7.1.310.0030.00916.01
7.1.300.0020.00915.84
7.1.290.0060.00715.86
7.1.280.0060.00515.74
7.1.270.0040.00615.96
7.1.260.0060.00815.76
7.1.250.0060.00415.89
7.1.240.0020.00815.81
7.1.230.0120.00015.98
7.1.220.0050.00615.85
7.1.210.0070.00715.74
7.1.200.0050.00815.77
7.1.190.0070.00815.77
7.1.180.0070.00715.88
7.1.170.0030.00815.76
7.1.160.0030.00615.79
7.1.150.0050.00915.84
7.1.140.0050.00515.71
7.1.130.0070.00715.87
7.1.120.0080.00515.82
7.1.110.0040.00915.83
7.1.100.0060.01016.70
7.1.90.0040.01116.00
7.1.80.0060.00916.02
7.1.70.0040.00716.27
7.1.60.0050.01017.07
7.1.50.0060.01016.12
7.1.40.0070.00815.87
7.1.30.0080.00315.88
7.1.20.0040.00915.69
7.1.10.0060.00715.85
7.1.00.0050.02518.10
7.0.330.0070.00815.61
7.0.320.0070.00515.55
7.0.310.0070.00615.69
7.0.300.0060.00815.47
7.0.290.0080.00515.44
7.0.280.0050.00915.40
7.0.270.0070.00515.49
7.0.260.0090.00215.43
7.0.250.0040.01015.64
7.0.240.0070.00415.58
7.0.230.0070.00715.59
7.0.220.0080.00615.63
7.0.210.0040.00615.55
7.0.200.0060.00516.08
7.0.190.0050.00915.70
7.0.180.0070.00715.50
7.0.170.0060.00315.63
7.0.160.0090.00415.37
7.0.150.0050.00715.62
7.0.140.0100.02517.75
7.0.130.0080.00815.56
7.0.120.0040.00715.43
7.0.110.0050.00915.46
7.0.100.0050.00715.56
7.0.90.0080.00415.62
7.0.80.0050.00915.64
7.0.70.0060.03317.63
7.0.60.0040.02517.67
7.0.50.0050.03017.73
7.0.40.0030.02715.77
7.0.30.0060.03115.79
7.0.20.0080.02815.87
7.0.10.0060.03115.71
7.0.00.0050.03315.71
5.6.400.0030.00714.43
5.6.390.0070.00714.72
5.6.380.0050.00714.61
5.6.370.0090.00514.59
5.6.360.0050.01014.61
5.6.350.0090.00614.52
5.6.340.0080.00514.58
5.6.330.0060.00814.65
5.6.320.0080.00514.44
5.6.310.0000.01214.34
5.6.300.0020.00914.55
5.6.290.0060.00714.63
5.6.280.0010.03116.52
5.6.270.0090.00514.62
5.6.260.0060.00614.63
5.6.250.0090.00314.48
5.6.240.0100.00614.57
5.6.230.0040.00714.57
5.6.220.0050.03216.49
5.6.210.0040.03416.53
5.6.200.0010.03416.83
5.6.190.0040.03516.74
5.6.180.0050.03216.63
5.6.170.0060.03216.75
5.6.160.0070.03116.52
5.6.150.0070.03116.66
5.6.140.0080.02816.71
5.6.130.0030.03616.47
5.6.120.0050.03316.81
5.6.110.0030.03716.68
5.6.100.0050.03116.65
5.6.90.0050.03216.71
5.6.80.0050.03216.41
5.6.70.0080.02416.43
5.6.60.0040.03016.30
5.6.50.0050.02716.41
5.6.40.0040.03016.22
5.6.30.0080.02616.40
5.6.20.0040.02216.50
5.6.10.0080.02416.41
5.6.00.0060.02916.40
5.5.380.0060.00514.29
5.5.370.0020.01314.38
5.5.360.0060.03116.40
5.5.350.0050.03516.35
5.5.340.0040.03116.49
5.5.330.0070.03116.42
5.5.320.0020.03516.69
5.5.310.0080.03116.64
5.5.300.0050.03416.55
5.5.290.0060.03016.52
5.5.280.0090.02516.66
5.5.270.0070.03116.82
5.5.260.0020.03316.58
5.5.250.0070.02616.40
5.5.240.0060.02216.25
5.5.230.0050.03216.14
5.5.220.0050.01816.14
5.5.210.0030.01916.30
5.5.200.0080.02816.31
5.5.190.0060.02416.27
5.5.180.0030.03716.40
5.5.170.0040.00614.33
5.5.160.0030.03116.42
5.5.150.0060.03216.39
5.5.140.0030.03316.26
5.5.130.0060.02616.36
5.5.120.0020.02716.30
5.5.110.0020.02816.37
5.5.100.0050.02916.31
5.5.90.0040.03316.25
5.5.80.0040.03116.19
5.5.70.0100.02816.32
5.5.60.0090.02416.34
5.5.50.0060.02716.33
5.5.40.0110.02616.25
5.5.30.0070.02516.18
5.5.20.0040.03216.26
5.5.10.0090.02416.25
5.5.00.0090.02916.32
5.4.450.0070.02614.83
5.4.440.0040.03114.86
5.4.430.0040.02614.87
5.4.420.0040.03014.84
5.4.410.0030.02214.72
5.4.400.0030.02214.66
5.4.390.0060.02814.73
5.4.380.0030.02614.72
5.4.370.0070.01114.68
5.4.360.0010.02514.73
5.4.350.0040.02314.73
5.4.340.0040.03014.74
5.4.330.0080.00112.57
5.4.320.0070.02714.79
5.4.310.0020.03314.64
5.4.300.0030.02714.72
5.4.290.0040.02814.71
5.4.280.0040.02814.73
5.4.270.0060.02614.76
5.4.260.0090.02114.66
5.4.250.0050.03014.73
5.4.240.0060.02514.68
5.4.230.0040.02714.69
5.4.220.0080.01914.65
5.4.210.0040.02914.75
5.4.200.0020.02014.79
5.4.190.0020.02914.69
5.4.180.0020.02914.64
5.4.170.0050.02314.74
5.4.160.0030.02614.74
5.4.150.0050.02814.74
5.4.140.0080.02413.81
5.4.130.0060.02513.82
5.4.120.0050.02413.79
5.4.110.0050.02813.83
5.4.100.0030.03013.87
5.4.90.0020.02313.79
5.4.80.0050.02913.81
5.4.70.0040.03013.81
5.4.60.0060.02613.81
5.4.50.0050.02713.79
5.4.40.0040.02713.79
5.4.30.0050.02713.85
5.4.20.0040.02613.82
5.4.10.0030.01713.81
5.4.00.0050.01813.62
5.3.290.0050.02513.22
5.3.280.0040.02913.24
5.3.270.0040.02613.25
5.3.260.0040.03113.24
5.3.250.0020.02713.20
5.3.240.0010.02913.25
5.3.230.0040.02913.23
5.3.220.0020.03213.24
5.3.210.0040.02913.18
5.3.200.0090.02313.23
5.3.190.0030.02613.23
5.3.180.0030.02413.19
5.3.170.0010.03113.23
5.3.160.0020.02713.18
5.3.150.0020.03013.19
5.3.140.0050.02613.18
5.3.130.0050.02613.21
5.3.120.0040.02913.21
5.3.110.0010.03013.22
5.3.100.0040.02713.04
5.3.90.0040.02613.03
5.3.80.0020.02513.01
5.3.70.0030.03112.99
5.3.60.0040.02513.04
5.3.50.0020.02313.02
5.3.40.0050.01213.03
5.3.30.0010.01712.97
5.3.20.0010.01712.93
5.3.10.0040.01412.89
5.3.00.0030.01612.92
5.2.170.0000.03312.22
5.2.160.0070.02312.22
5.2.150.0000.03012.22
5.2.140.0000.03012.22
5.2.130.0030.02312.22
5.2.120.0000.03012.22
5.2.110.0000.03012.22
5.2.100.0070.02712.22
5.2.90.0000.02712.22
5.2.80.0030.02312.22
5.2.70.0000.02312.22
5.2.60.0000.02312.22
5.2.50.0030.02312.22
5.2.40.0000.02312.22
5.2.30.0000.02712.22
5.2.20.0000.03312.22
5.2.10.0030.05712.22
5.2.00.0000.04712.22
5.1.60.0070.03312.22
5.1.50.0000.03712.22
5.1.40.0030.02712.22
5.1.30.0000.02712.22
5.1.20.0000.03012.22
5.1.10.0000.02712.22
5.1.00.0000.02712.22
5.0.50.0000.02012.22
5.0.40.0030.01312.22
5.0.30.0000.03712.22
5.0.20.0000.01712.22
5.0.10.0000.01712.22
5.0.00.0000.03012.22
4.4.90.0000.01312.22
4.4.80.0000.01312.22
4.4.70.0000.02712.22
4.4.60.0000.01712.22
4.4.50.0030.02712.22
4.4.40.0000.04312.22
4.4.30.0030.01712.22
4.4.20.0000.01712.22
4.4.10.0030.02012.22
4.4.00.0030.02712.22
4.3.110.0030.01012.22
4.3.100.0000.01312.22
4.3.90.0000.01012.22
4.3.80.0000.02312.22
4.3.70.0000.01712.22
4.3.60.0000.01012.22
4.3.50.0030.01312.22
4.3.40.0000.03012.22
4.3.30.0000.02012.22
4.3.20.0000.01312.22
4.3.10.0000.02312.22
4.3.00.0030.01012.22

preferences:
41.57 ms | 401 KiB | 5 Q