3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'укгезәөшөхзәхөшк2049һһлдябчсячмииюсит.июбҗрарэ'; /* Detect character encoding with current detect_order */ echo mb_detect_encoding($str); /* "auto" is expanded according to mbstring.language */ echo mb_detect_encoding($str, "auto"); /* Specify encoding_list character encoding by comma separated list */ echo mb_detect_encoding($str, "JIS, eucjp-win, sjis-win"); /* 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.4.20.0100.01017.75
8.4.10.0130.00717.77
8.3.140.0040.00418.48
8.3.130.0060.00318.61
8.3.120.0170.00318.76
8.3.110.0050.00320.94
8.3.100.0030.00624.06
8.3.90.0040.01426.77
8.3.80.0060.00316.50
8.3.70.0000.01816.75
8.3.60.0180.00418.25
8.3.50.0170.00321.09
8.3.40.0120.00319.02
8.3.30.0080.00818.54
8.3.20.0050.00318.48
8.3.10.0050.00321.09
8.3.00.0040.00421.60
8.2.260.0050.00320.83
8.2.250.0100.01016.91
8.2.240.0090.00617.17
8.2.230.0050.00322.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0080.00416.75
8.2.190.0150.00617.00
8.2.180.0140.00316.88
8.2.170.0120.00322.96
8.2.160.0100.00320.51
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00421.14
8.2.110.0060.00321.21
8.2.100.0040.00818.03
8.2.90.0040.00419.46
8.2.80.0080.00017.97
8.2.70.0080.00017.75
8.2.60.0000.00818.34
8.2.50.0060.00318.10
8.2.40.0000.00820.79
8.2.30.0040.00418.34
8.2.20.0050.00317.80
8.2.10.0000.00817.83
8.2.00.0040.00417.79
8.1.310.0050.00316.69
8.1.300.0130.00718.33
8.1.290.0030.00718.88
8.1.280.0130.00325.92
8.1.270.0060.00322.27
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0110.00021.97
8.1.230.0040.00720.98
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0050.00317.35
8.1.180.0060.00318.10
8.1.170.0030.00618.76
8.1.160.0040.00419.16
8.1.150.0040.00418.75
8.1.140.0060.00317.52
8.1.130.0030.00317.98
8.1.120.0000.00717.55
8.1.110.0000.00717.62
8.1.100.0040.00417.59
8.1.90.0070.00017.47
8.1.80.0030.00517.54
8.1.70.0040.00417.59
8.1.60.0030.00617.62
8.1.50.0040.00417.48
8.1.40.0060.00317.51
8.1.30.0040.00417.76
8.1.20.0000.00817.77
8.1.10.0050.00317.68
8.1.00.0040.00417.62
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.51
8.0.270.0030.00317.28
8.0.260.0000.00616.85
8.0.250.0000.00716.94
8.0.240.0000.00917.06
8.0.230.0000.00616.88
8.0.220.0000.00716.98
8.0.210.0070.00016.94
8.0.200.0060.00017.02
8.0.190.0040.00416.96
8.0.180.0000.00716.90
8.0.170.0090.00017.00
8.0.160.0030.00317.03
8.0.150.0000.00716.85
8.0.140.0040.00416.92
8.0.130.0030.00313.29
8.0.120.0000.00716.92
8.0.110.0040.00416.80
8.0.100.0040.00416.80
8.0.90.0000.00716.96
8.0.80.0060.00917.01
8.0.70.0040.00416.75
8.0.60.0080.00016.87
8.0.50.0000.00816.83
8.0.30.0110.01117.15
8.0.20.0110.00817.40
8.0.10.0040.00416.96
8.0.00.0050.01516.93
7.4.330.0050.00014.90
7.4.320.0030.00316.57
7.4.300.0040.00416.55
7.4.290.0000.00716.64
7.4.280.0000.00816.63
7.4.270.0030.00316.70
7.4.260.0030.00313.27
7.4.250.0030.00516.63
7.4.240.0040.00416.59
7.4.230.0000.00716.40
7.4.220.0170.00916.63
7.4.210.0080.00916.61
7.4.200.0070.00016.44
7.4.190.0040.00416.64
7.4.160.0100.00716.44
7.4.150.0070.01117.40
7.4.140.0120.00517.86
7.4.130.0090.01016.59
7.4.120.0090.01116.53
7.4.110.0070.01016.48
7.4.100.0090.00916.75
7.4.90.0060.01316.71
7.4.80.0060.01319.39
7.4.70.0100.00716.38
7.4.60.0060.01216.59
7.4.50.0030.00316.38
7.4.40.0070.01022.77
7.4.30.0070.01116.38
7.4.00.0070.01114.80
7.3.330.0050.00013.30
7.3.320.0130.00013.06
7.3.310.0070.00016.32
7.3.300.0030.00316.34
7.3.290.0060.01216.31
7.3.280.0080.01216.32
7.3.270.0070.01017.40
7.3.260.0110.01118.24
7.3.250.0120.00716.58
7.3.240.0100.00716.59
7.3.230.0060.01016.39
7.3.210.0080.00816.70
7.3.200.0120.01619.39
7.3.190.0130.00316.52
7.3.180.0120.00316.44
7.3.170.0100.00616.46
7.3.160.0100.00716.39
7.3.120.0070.00814.98
7.3.110.0090.00914.95
7.3.100.0040.01115.07
7.3.90.0090.00614.93
7.3.80.0120.00314.76
7.3.70.0080.00514.77
7.3.60.0000.01314.97
7.3.50.0000.01015.04
7.3.40.0110.00414.86
7.3.30.0120.00014.93
7.3.20.0060.00716.66
7.3.10.0090.00316.72
7.3.00.0130.00316.67
7.2.330.0120.00616.51
7.2.320.0100.01316.52
7.2.310.0070.01116.76
7.2.300.0130.00716.81
7.2.290.0100.01316.75
7.2.250.0030.01814.73
7.2.240.0030.01715.30
7.2.230.0070.01015.01
7.2.220.0080.00314.75
7.2.210.0060.00815.25
7.2.200.0000.01014.96
7.2.190.0040.01115.11
7.2.180.0000.01114.78
7.2.170.0000.01715.14
7.2.130.0100.00716.98
7.2.120.0110.00816.96
7.2.110.0060.00916.93
7.2.100.0000.01816.61
7.2.90.0040.00916.77
7.2.80.0110.01116.80
7.2.70.0150.00616.96
7.2.60.0060.00916.94
7.2.50.0170.00017.00
7.2.40.0100.00716.79
7.2.30.0100.00617.01
7.2.20.0090.00616.82
7.2.10.0100.00717.02
7.2.00.0080.00818.16
7.1.330.0080.00815.59
7.1.320.0030.01016.00
7.1.310.0080.00615.93
7.1.300.0060.00615.59
7.1.290.0040.00815.81
7.1.280.0070.00715.95
7.1.270.0030.01015.72
7.1.260.0000.01016.09
7.1.250.0030.01315.96
7.1.240.0000.01415.90
7.1.230.0080.00815.65
7.1.220.0040.00815.99
7.1.210.0100.00315.88
7.1.200.0090.01415.41
7.1.190.0100.00715.87
7.1.180.0070.00715.71
7.1.170.0090.00915.95
7.1.160.0120.00415.94
7.1.150.0030.00915.77
7.1.140.0080.00815.54
7.1.130.0040.00815.97
7.1.120.0000.01515.72
7.1.110.0110.00715.97
7.1.100.0110.00316.72
7.1.90.0100.00615.78
7.1.80.0000.01316.01
7.1.70.0070.00716.45
7.1.60.0140.00717.50
7.1.50.0110.00916.31
7.1.40.0160.00615.84
7.1.30.0130.00615.87
7.1.20.0170.00015.69
7.1.10.0070.01015.71
7.1.00.0070.01919.22
7.0.330.0090.00615.50
7.0.320.0030.01115.38
7.0.310.0100.01015.10
7.0.300.0100.00615.36
7.0.290.0070.01015.53
7.0.280.0100.00315.44
7.0.270.0040.01115.66
7.0.260.0040.01115.55
7.0.250.0060.01215.29
7.0.240.0120.00315.59
7.0.230.0090.00615.54
7.0.220.0110.00315.38
7.0.210.0100.00515.17
7.0.200.0040.00816.11
7.0.190.0150.00415.46
7.0.180.0040.01215.27
7.0.170.0060.00915.67
7.0.160.0060.00915.16
7.0.150.0060.00915.48
7.0.140.0060.04118.89
7.0.130.0030.01315.55
7.0.120.0120.00815.22
7.0.110.0030.01315.49
7.0.100.0150.00315.58
7.0.90.0130.00015.24
7.0.80.0070.01015.34
7.0.70.0070.03518.80
7.0.60.0040.04718.48
7.0.50.0110.04018.84
7.0.40.0090.04116.81
7.0.30.0090.04316.75
7.0.20.0060.04416.70
7.0.10.0050.04716.83
7.0.00.0030.04816.88
5.6.380.0050.00814.06
5.6.370.0070.01014.64
5.6.360.0000.00814.34
5.6.350.0070.00714.54
5.6.340.0050.00514.70
5.6.330.0060.00614.04
5.6.320.0080.00614.19
5.6.310.0080.00414.54
5.6.300.0130.00314.43
5.6.290.0070.01114.36
5.6.280.0040.04417.72
5.6.270.0110.00614.30
5.6.260.0100.00314.33
5.6.250.0030.01214.27
5.6.240.0000.01114.39
5.6.230.0140.00314.53
5.6.220.0070.03517.54
5.6.210.0110.04017.43
5.6.200.0030.04317.54
5.6.190.0130.04117.54
5.6.180.0050.05017.85
5.6.170.0050.04517.72
5.6.160.0080.03917.64
5.6.150.0030.03517.64
5.6.140.0020.04917.59
5.6.130.0090.04317.70
5.6.120.0080.04517.69
5.6.110.0030.04617.65
5.6.100.0080.04617.70
5.6.90.0070.04517.70
5.6.80.0100.02917.19
5.6.70.0070.03217.29
5.6.60.0050.02517.15
5.6.50.0080.04417.42
5.6.40.0120.02617.33
5.6.30.0030.03617.43
5.6.20.0050.03817.24
5.6.10.0080.03917.34
5.6.00.0050.04617.37
5.5.380.0070.00410.81
5.5.370.0000.01111.44
5.5.360.0070.04415.86
5.5.350.0100.03815.83
5.5.340.0070.04316.01
5.5.330.0050.03316.00
5.5.320.0040.02615.94
5.5.310.0050.04715.97
5.5.300.0100.04015.81
5.5.290.0070.04116.04
5.5.280.0040.03815.86
5.5.270.0030.04915.95
5.5.260.0070.04015.78
5.5.250.0030.04815.78
5.5.240.0060.02115.59
5.5.230.0070.04215.66
5.5.220.0070.04115.58
5.5.210.0050.04215.71
5.5.200.0030.04415.46
5.5.190.0090.02215.59
5.5.180.0030.04715.72
5.5.170.0000.01110.96
5.5.160.0000.03515.74
5.5.150.0050.04415.62
5.5.140.0030.03115.53
5.5.130.0060.04115.67
5.5.120.0000.03715.59
5.5.110.0030.04615.49
5.5.100.0110.02615.54
5.5.90.0050.03515.44
5.5.80.0030.04715.56
5.5.70.0020.04415.49
5.5.60.0030.04315.44
5.5.50.0020.03815.61
5.5.40.0070.04115.47
5.5.30.0080.03815.56
5.5.20.0020.03115.57
5.5.10.0000.04115.58
5.5.00.0050.02515.47
5.4.450.0040.03115.09
5.4.440.0020.03715.32
5.4.430.0070.03815.36
5.4.420.0070.03015.09
5.4.410.0110.03715.08
5.4.400.0030.04414.95
5.4.390.0020.03115.08
5.4.380.0070.02515.01
5.4.370.0080.04015.13
5.4.360.0080.03914.99
5.4.350.0030.02514.75
5.4.340.0040.04215.04
5.4.330.0110.00410.88
5.4.320.0020.04615.08
5.4.310.0020.04814.89
5.4.300.0130.03514.94
5.4.290.0050.03515.02
5.4.280.0070.04315.07
5.4.270.0100.02215.00
5.4.260.0040.03214.90
5.4.250.0070.04214.79
5.4.240.0060.03014.88
5.4.230.0050.02614.89
5.4.220.0040.03914.92
5.4.210.0120.03114.99
5.4.200.0080.02815.09
5.4.190.0080.03814.91
5.4.180.0070.02015.02
5.4.170.0050.02614.91
5.4.160.0030.02415.05
5.4.150.0100.01814.93
5.4.140.0050.02213.49
5.4.130.0070.02913.56
5.4.120.0060.02113.58
5.4.110.0040.04613.66
5.4.100.0090.03713.69
5.4.90.0050.04013.52
5.4.80.0070.02713.71
5.4.70.0050.02613.74
5.4.60.0020.04013.69
5.4.50.0030.02713.60
5.4.40.0030.03413.56
5.4.30.0050.03813.64
5.4.20.0050.03413.41
5.4.10.0060.02213.63
5.4.00.0050.02013.34
5.3.290.0030.04312.49
5.3.280.0030.04412.46
5.3.270.0030.04312.53
5.3.260.0040.02212.50
5.3.250.0030.04312.47
5.3.240.0030.04212.53
5.3.230.0090.02512.51
5.3.220.0050.04012.50
5.3.210.0050.02712.46
5.3.200.0040.03512.52
5.3.190.0020.04512.53
5.3.180.0040.04212.59
5.3.170.0020.02612.45
5.3.160.0040.03012.45
5.3.150.0020.03612.60
5.3.140.0020.02512.52
5.3.130.0030.04112.58
5.3.120.0030.03012.47
5.3.110.0050.04212.53
5.3.100.0050.03312.22
5.3.90.0030.04012.17
5.3.80.0000.03312.18
5.3.70.0050.03512.23
5.3.60.0050.03312.16
5.3.50.0020.03912.14
5.3.40.0060.04012.21
5.3.30.0030.03712.14
5.3.20.0030.03812.09
5.3.10.0050.02812.00
5.3.00.0060.02812.05
5.2.170.0000.03511.35
5.2.160.0010.03311.35
5.2.150.0000.02511.35
5.2.140.0020.03511.35
5.2.130.0040.02311.35
5.2.120.0050.03311.35
5.2.110.0040.02711.35
5.2.100.0030.02911.35
5.2.90.0000.03211.35
5.2.80.0060.03211.35
5.2.70.0030.03611.35
5.2.60.0050.02711.35
5.2.50.0030.03011.35
5.2.40.0070.03011.35
5.2.30.0040.02411.35
5.2.20.0060.03111.35
5.2.10.0030.02411.35
5.2.00.0030.03411.35
5.1.60.0020.01511.35
5.1.50.0060.01211.35
5.1.40.0020.01811.35
5.1.30.0050.02011.35
5.1.20.0030.03011.35
5.1.10.0040.01311.35
5.1.00.0040.02811.35
5.0.50.0030.02211.35
5.0.40.0050.01111.35
5.0.30.0000.03011.35
5.0.20.0040.02011.35
5.0.10.0030.01811.35
5.0.00.0030.02811.35
4.4.90.0010.01511.35
4.4.80.0040.01211.35
4.4.70.0010.01911.35
4.4.60.0070.01011.35
4.4.50.0020.01511.35
4.4.40.0020.02811.35
4.4.30.0000.02111.35
4.4.20.0020.01211.35
4.4.10.0030.00811.35
4.4.00.0020.02211.35
4.3.110.0000.01511.35
4.3.100.0020.01811.35
4.3.90.0030.01511.35
4.3.80.0000.03011.35
4.3.70.0020.01811.35
4.3.60.0020.01611.35
4.3.50.0030.01511.35
4.3.40.0010.01611.35
4.3.30.0020.01311.35
4.3.20.0020.02011.35
4.3.10.0020.02111.35
4.3.00.0000.02211.35

preferences:
38.51 ms | 403 KiB | 5 Q