3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$result = array( "\xb0\x00", "\x43\x00", "\x00\x00" ); $result = "\ub000\u4300\u0000"; $encoding = mb_detect_encoding( $result ); echo "encoding is: $encoding"; ?>

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.0070.01416.24
8.3.50.0120.00717.53
8.3.40.0120.00318.70
8.3.30.0000.01418.71
8.3.20.0050.00318.63
8.3.10.0030.00520.54
8.3.00.0040.00419.38
8.2.180.0150.00616.38
8.2.170.0040.01222.96
8.2.160.0120.00318.91
8.2.150.0000.00824.18
8.2.140.0070.00324.66
8.2.130.0000.00726.16
8.2.120.0080.00019.83
8.2.110.0080.00320.80
8.2.100.0090.00317.72
8.2.90.0000.00719.30
8.2.80.0090.00017.97
8.2.70.0040.00417.75
8.2.60.0030.00618.05
8.2.50.0000.00818.07
8.2.40.0040.00418.16
8.2.30.0040.00418.17
8.2.20.0040.00417.70
8.2.10.0090.00017.73
8.2.00.0000.00717.73
8.1.280.0080.00625.92
8.1.270.0000.00724.66
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0050.00522.42
8.1.230.0080.00420.97
8.1.220.0000.00818.77
8.1.210.0000.00818.79
8.1.200.0060.00317.35
8.1.190.0030.00617.53
8.1.180.0040.00418.10
8.1.170.0000.00818.76
8.1.160.0040.00418.88
8.1.150.0000.00918.59
8.1.140.0040.00417.39
8.1.130.0070.00017.69
8.1.120.0000.00717.50
8.1.110.0040.00417.39
8.1.100.0000.00717.44
8.1.90.0030.00517.38
8.1.80.0040.00417.35
8.1.70.0000.00717.43
8.1.60.0040.00417.55
8.1.50.0000.00817.39
8.1.40.0030.00617.51
8.1.30.0040.00417.57
8.1.20.0060.00317.62
8.1.10.0000.00717.64
8.1.00.0060.00317.52
8.0.300.0080.00020.06
8.0.290.0040.00416.75
8.0.280.0030.00318.42
8.0.270.0000.00717.25
8.0.260.0000.00716.87
8.0.250.0040.00417.05
8.0.240.0030.00616.89
8.0.230.0030.00317.00
8.0.220.0000.00716.94
8.0.210.0000.00716.92
8.0.200.0060.00316.94
8.0.190.0070.00016.91
8.0.180.0080.00016.93
8.0.170.0000.00916.86
8.0.160.0000.00716.82
8.0.150.0060.00316.91
8.0.140.0000.01116.86
8.0.130.0000.00613.38
8.0.120.0050.00316.91
8.0.110.0040.00417.03
8.0.100.0040.00416.83
8.0.90.0030.00417.06
8.0.80.0090.00616.92
8.0.70.0060.00316.83
8.0.60.0050.00317.00
8.0.50.0080.00016.75
8.0.30.0090.01217.04
8.0.20.0100.01417.14
8.0.10.0040.00416.91
8.0.00.0100.01116.72
7.4.330.0050.00013.00
7.4.320.0000.00616.52
7.4.300.0000.00616.49
7.4.290.0040.00416.54
7.4.280.0050.00316.60
7.4.270.0070.00016.61
7.4.260.0030.00313.21
7.4.250.0000.00816.55
7.4.240.0070.00016.52
7.4.230.0070.00016.30
7.4.220.0150.00616.60
7.4.210.0060.01016.50
7.4.200.0030.00316.63
7.4.190.0070.00016.38
7.4.160.0100.00616.49
7.4.150.0160.00316.57
7.4.140.0080.01016.53
7.4.130.0070.01116.53
7.4.120.0080.00816.38
7.4.110.0140.00416.58
7.4.100.0060.01116.45
7.4.90.0170.00316.47
7.4.80.0080.00816.54
7.4.70.0060.01216.36
7.4.60.0140.00716.50
7.4.50.0080.00016.41
7.4.40.0070.00716.45
7.4.30.0040.01416.40
7.4.00.0120.00415.06
7.3.330.0070.00013.15
7.3.320.0050.00013.18
7.3.310.0030.00316.34
7.3.300.0000.00616.27
7.3.290.0030.01316.27
7.3.280.0090.00916.27
7.3.270.0130.00316.25
7.3.260.0130.00616.45
7.3.250.0070.01416.46
7.3.240.0090.00716.36
7.3.230.0060.01016.52
7.3.210.0030.01316.48
7.3.200.0060.00919.39
7.3.190.0050.01416.35
7.3.180.0140.00716.53
7.3.170.0100.01016.25
7.3.160.0060.00916.32
7.3.120.0030.01314.68
7.3.110.0110.00714.74
7.3.100.0030.01314.86
7.3.90.0090.00614.80
7.3.80.0070.00714.78
7.3.70.0070.01014.46
7.3.60.0070.00714.85
7.3.50.0130.00314.70
7.3.40.0070.00714.59
7.3.30.0000.01114.59
7.3.20.0060.00916.50
7.3.10.0030.01216.65
7.3.00.0130.00316.54
7.2.330.0120.00616.64
7.2.320.0160.00616.38
7.2.310.0090.00916.71
7.2.300.0060.01016.48
7.2.290.0100.00616.55
7.2.240.0070.01015.17
7.2.230.0070.00714.88
7.2.220.0070.01314.95
7.2.210.0060.01015.00
7.2.200.0000.01415.14
7.2.190.0040.00415.14
7.2.180.0130.00714.80
7.2.170.0030.00714.84
7.2.160.0000.01115.05
7.2.150.0030.01216.73
7.2.140.0070.01116.56
7.2.130.0070.00316.81
7.2.120.0040.00716.98
7.2.110.0060.00316.54
7.2.100.0070.00716.82
7.2.90.0000.01116.69
7.2.80.0070.00717.06
7.2.70.0050.00816.91
7.2.60.0090.00616.86
7.2.50.0030.01016.73
7.2.40.0100.00616.84
7.2.30.0040.01216.67
7.2.20.0060.00617.01
7.2.10.0030.00916.80
7.2.00.0060.00616.93
7.1.330.0100.00315.98
7.1.320.0060.00315.92
7.1.310.0000.01315.89
7.1.300.0030.00615.82
7.1.290.0090.00615.89
7.1.280.0100.00315.76
7.1.270.0060.01015.59
7.1.260.0040.00815.83
7.1.250.0070.00715.62
7.1.70.0070.00417.19
7.1.60.0030.02019.40
7.1.50.0000.02116.98
7.1.00.0000.07022.40
7.0.200.0030.00516.85
7.0.140.0030.07021.95
7.0.120.0000.07722.09
7.0.60.0070.04320.06
7.0.50.0070.07017.86
7.0.40.0000.05320.19
7.0.30.0270.06020.21
7.0.20.0130.04720.33
7.0.10.0170.07720.04
7.0.00.0100.08720.32
5.6.280.0070.07021.11
5.6.210.0000.08320.64
5.6.200.0030.04018.16
5.6.190.0030.09020.68
5.6.180.0400.04320.33
5.6.170.0330.07720.58
5.6.160.0070.05020.34
5.6.150.0030.04018.21
5.6.140.0130.04718.18
5.6.130.0030.04018.18
5.6.120.0070.08721.02
5.6.110.0100.07721.00
5.6.100.0070.04021.10
5.6.90.0100.08321.03
5.6.80.0130.07720.38
5.5.350.0000.04020.37
5.5.340.0070.06317.89
5.5.330.0030.07720.23
5.5.320.0330.05020.29
5.5.310.0270.04020.23
5.5.300.0100.06317.98
5.5.290.0130.05318.03
5.5.280.0030.07020.79
5.5.270.0000.09020.63
5.5.260.0030.08720.63
5.5.250.0070.07320.77
5.5.240.4230.03320.18
5.4.450.0000.05319.24
5.4.440.0070.07319.51
5.4.430.0030.04019.50
5.4.420.0100.03319.52
5.4.410.0070.05719.39
5.4.400.0070.04319.09
5.4.390.0100.03319.09
5.4.380.0070.07719.10
5.4.370.0070.07718.93
5.4.360.0100.05019.15
5.4.350.0000.06319.17
5.4.340.0000.08718.79
5.4.320.0100.04019.08
5.4.310.0070.04318.92
5.4.300.0000.05318.91
5.4.290.0130.07018.92
5.4.280.0100.07318.91
5.4.270.0100.05019.02
5.4.260.0100.05319.14
5.4.250.0030.07318.80
5.4.240.0100.06319.07
5.4.230.0070.05018.80
5.4.220.0030.05318.80
5.4.210.0070.04019.17
5.4.200.0030.07319.17
5.4.190.0030.04019.07
5.4.180.0100.08018.90
5.4.170.0130.06018.99
5.4.160.0030.05018.76
5.4.150.0070.07719.15
5.4.140.0100.04716.20
5.4.130.0100.07316.30
5.4.120.0030.04016.32
5.4.110.0070.04016.36
5.4.100.0100.05716.32
5.4.90.0070.06316.25
5.4.80.0000.07316.38
5.4.70.0070.05316.26
5.4.60.0030.07316.58
5.4.50.0030.07316.26
5.4.40.0000.04716.24
5.4.30.0070.06716.38
5.4.20.0070.03316.23
5.4.10.0070.06716.27
5.4.00.0000.04015.79
5.3.290.0130.07714.59
5.3.280.0130.07014.52
5.3.270.0070.08014.53
5.3.260.0070.04314.48
5.3.250.0100.07014.39
5.3.240.0070.07314.55
5.3.230.0100.05014.61
5.3.220.0100.06714.50
5.3.210.0100.04014.50
5.3.200.0030.08014.38
5.3.190.0030.04314.50
5.3.180.0200.03014.34
5.3.170.0070.04314.49
5.3.160.0070.07314.38
5.3.150.0100.05314.57
5.3.140.0000.06014.48
5.3.130.0030.08014.50
5.3.120.0000.04714.47
5.3.110.0070.05014.33
5.3.100.0000.04013.95
5.3.90.0070.03313.96
5.3.80.0030.03713.98
5.3.70.0070.05313.96
5.3.60.0000.04313.96
5.3.50.0030.06313.73
5.3.40.0000.08713.87
5.3.30.0000.07013.83
5.3.20.0130.03313.47
5.3.10.0030.03713.45
5.3.00.0070.06013.56
5.2.170.0100.02310.96
5.2.160.0000.03010.96
5.2.150.0030.03011.23
5.2.140.0000.03711.29
5.2.130.0030.06310.92
5.2.120.0030.04311.08
5.2.110.0030.03011.03
5.2.100.0100.05011.10
5.2.90.0000.03010.98
5.2.80.0000.04311.07
5.2.70.0000.03310.91
5.2.60.0030.03011.02
5.2.50.0070.06710.99
5.2.40.0070.03310.98
5.2.30.0030.03010.82
5.2.20.0000.06310.90
5.2.10.0030.03710.84
5.2.00.0030.05710.71
5.1.60.0030.0439.83
5.1.50.0000.0409.98
5.1.40.0070.0579.89
5.1.30.0100.05310.38
5.1.20.0000.06010.33
5.1.10.0000.05310.11
5.1.00.0030.05710.08
5.0.50.0070.0208.57
5.0.40.0000.0338.55
5.0.30.0030.0338.21
5.0.20.0030.0208.20
5.0.10.0070.0238.21
5.0.00.0030.0408.14
4.4.90.0030.0138.07
4.4.80.0000.0178.07
4.4.70.0030.0278.07
4.4.60.0030.0308.07
4.4.50.0030.0238.07
4.4.40.0000.0278.07
4.4.30.0000.0308.07
4.4.20.0030.0238.07
4.4.10.0030.0338.07
4.4.00.0000.0608.07
4.3.110.0000.0208.07
4.3.100.0000.0178.07
4.3.90.0070.0338.07
4.3.80.0000.0538.07
4.3.70.0030.0278.07
4.3.60.0030.0278.07
4.3.50.0030.0278.07
4.3.40.0000.0538.07
4.3.30.0000.0208.07
4.3.20.0030.0238.07
4.3.10.0030.0338.07
4.3.00.0070.0178.07

preferences:
46.78 ms | 400 KiB | 5 Q