3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "â€"; var_dump(html_entity_decode($string, ENT_QUOTES, "UTF-8")); var_dump(mb_convert_encoding($string, "HTML-ENTITIES", mb_detect_encoding($string)));

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.0060.00916.63
8.3.50.0210.01121.87
8.3.40.0120.00318.73
8.3.30.0140.00318.96
8.3.20.0000.00720.38
8.3.10.0080.00023.65
8.3.00.0040.00419.13
8.2.180.0140.00718.41
8.2.170.0150.00022.96
8.2.160.0030.01020.35
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00726.16
8.2.120.0040.00422.08
8.2.110.0040.00420.35
8.2.100.0120.00017.80
8.2.90.0000.00719.09
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0110.00017.93
8.2.50.0040.00418.07
8.2.40.0000.00919.75
8.2.30.0030.00618.04
8.2.20.0040.00417.74
8.2.10.0040.00418.05
8.2.00.0110.00017.71
8.1.280.0140.00325.92
8.1.270.0000.00823.96
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0120.00618.68
8.1.230.0110.00019.09
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.00
8.1.190.0040.00417.28
8.1.180.0080.00318.10
8.1.170.0000.00920.27
8.1.160.0000.00822.00
8.1.150.0000.00718.68
8.1.140.0000.00717.49
8.1.130.0030.00717.77
8.1.120.0030.00317.41
8.1.110.0040.00417.33
8.1.100.0030.00717.42
8.1.90.0040.00417.46
8.1.80.0090.00017.40
8.1.70.0030.00317.40
8.1.60.0000.00917.64
8.1.50.0030.00517.49
8.1.40.0030.00517.54
8.1.30.0000.00817.61
8.1.20.0060.00317.48
8.1.10.0040.00417.40
8.1.00.0040.00417.34
8.0.300.0050.00219.16
8.0.290.0040.00417.18
8.0.280.0040.00418.30
8.0.270.0030.00316.79
8.0.260.0000.00617.25
8.0.250.0030.00316.84
8.0.240.0000.00816.90
8.0.230.0080.00016.86
8.0.220.0040.00416.95
8.0.210.0000.00716.88
8.0.200.0030.00316.96
8.0.190.0000.00716.80
8.0.180.0070.00016.92
8.0.170.0030.00516.83
8.0.160.0080.00016.95
8.0.150.0050.00316.87
8.0.140.0070.00016.75
8.0.130.0050.00013.31
8.0.120.0070.00016.88
8.0.110.0040.00416.89
8.0.100.0070.00016.66
8.0.90.0050.00316.79
8.0.80.0150.00616.87
8.0.70.0050.00216.83
8.0.60.0040.00416.84
8.0.50.0000.00716.87
8.0.30.0110.01016.96
8.0.20.0110.00817.40
8.0.10.0000.00816.89
8.0.00.0100.01016.63
7.4.330.0020.00215.15
7.4.320.0060.00016.61
7.4.300.0000.00616.57
7.4.290.0070.00016.61
7.4.280.0060.00016.59
7.4.270.0030.00316.53
7.4.260.0070.00016.56
7.4.250.0030.00316.46
7.4.240.0030.00316.61
7.4.230.0070.00016.67
7.4.220.0150.00616.39
7.4.210.0080.00616.52
7.4.200.0030.00316.35
7.4.190.0000.00816.69
7.4.160.0040.01116.45
7.4.150.0070.01017.40
7.4.140.0110.00817.86
7.4.130.0100.00716.53
7.4.120.0110.00816.53
7.4.110.0190.00016.53
7.4.100.0100.00716.25
7.4.90.0170.00016.61
7.4.80.0070.01319.39
7.4.70.0160.00016.55
7.4.60.0070.01016.55
7.4.50.0040.00016.39
7.4.40.0060.01022.77
7.4.30.0060.00916.35
7.4.00.0140.00014.84
7.3.330.0000.00613.04
7.3.320.0050.00012.89
7.3.310.0050.00316.31
7.3.300.0070.00016.23
7.3.290.0070.00716.26
7.3.280.0080.01016.18
7.3.270.0140.00317.40
7.3.260.0050.01216.35
7.3.250.0090.01016.43
7.3.240.0090.00816.30
7.3.230.0000.01816.39
7.3.210.0110.00616.23
7.3.200.0060.01219.39
7.3.190.0130.00316.15
7.3.180.0060.00916.45
7.3.170.0150.00616.38
7.3.160.0100.01316.15
7.3.120.0090.00614.55
7.3.10.0070.00716.56
7.3.00.0060.00616.46
7.2.330.0000.01616.34
7.2.320.0110.01516.46
7.2.310.0070.01816.21
7.2.300.0090.01316.36
7.2.290.0120.01016.64
7.2.130.0090.00616.81
7.2.120.0030.00916.79
7.2.110.0030.01316.77
7.2.100.0100.00316.95
7.2.90.0070.00716.63
7.2.80.0030.00916.70
7.2.70.0130.00016.46
7.2.60.0000.01416.63
7.2.50.0070.00416.56
7.2.40.0000.01116.80
7.2.30.0030.01016.66
7.2.20.0070.01016.42
7.2.10.0090.00316.71
7.2.00.0080.00518.08
7.1.250.0040.00815.55
7.1.240.0030.01015.77
7.1.230.0030.00715.77
7.1.220.0080.00315.77
7.1.210.0030.01015.63
7.1.200.0090.00415.69
7.1.190.0040.00415.65
7.1.180.0090.00615.69
7.1.170.0030.00715.45
7.1.160.0030.00915.62
7.1.150.0090.00015.77
7.1.140.0060.00615.79
7.1.130.0000.00815.54
7.1.120.0080.00415.79
7.1.110.0060.00316.00
7.1.100.0020.00816.81
7.1.90.0080.00815.70
7.1.80.0060.00615.78
7.1.70.0050.00516.38
7.1.60.0020.01717.61
7.1.50.0070.01216.09
7.1.40.0040.00415.73
7.1.30.0070.00715.85
7.1.20.0030.01015.51
7.1.10.0060.00615.78
7.1.00.0050.04219.04
7.0.330.0070.00315.43
7.0.320.0000.01015.40
7.0.310.0040.00715.02
7.0.300.0060.00615.39
7.0.290.0030.00915.33
7.0.280.0030.00715.33
7.0.270.0040.00815.44
7.0.260.0030.01215.51
7.0.250.0080.00615.28
7.0.240.0070.00715.26
7.0.230.0000.00915.49
7.0.220.0040.01115.52
7.0.210.0030.01015.52
7.0.200.0110.00515.10
7.0.190.0060.00315.55
7.0.180.0030.01015.15
7.0.170.0040.01115.38
7.0.160.0070.00715.43
7.0.150.0040.00415.34
7.0.140.0030.04218.53
7.0.130.0130.00315.27
7.0.120.0030.00715.60
7.0.110.0080.00015.44
7.0.100.0030.01015.46
7.0.90.0090.00315.35
7.0.80.0060.00315.31
7.0.70.0030.00915.46
7.0.60.0080.04317.48
7.0.50.0030.02516.57
7.0.40.0060.02216.88
7.0.30.0320.03216.63
7.0.20.0180.04016.59
7.0.10.0040.02516.70
7.0.00.0050.02616.63
5.6.380.0030.00914.01
5.6.370.0060.00614.18
5.6.360.0000.01413.94
5.6.350.0030.01314.29
5.6.340.0090.00314.10
5.6.330.0060.00914.32
5.6.320.0130.00014.39
5.6.310.0030.00614.03
5.6.300.0030.01014.32
5.6.290.0000.00814.23
5.6.280.0070.04017.68
5.6.270.0030.01014.59
5.6.260.0100.00314.32
5.6.250.0000.01714.46
5.6.240.0060.00314.11
5.6.230.0030.00814.22
5.6.220.0100.00614.12
5.6.210.0070.04017.34
5.6.200.0130.02716.24
5.6.190.0060.03617.45
5.6.180.0140.04217.41
5.6.170.0140.02717.34
5.6.160.0090.03217.47
5.6.150.0080.03016.10
5.6.140.0020.03716.14
5.6.130.0020.03616.06
5.6.120.0050.02617.55
5.6.110.0070.04217.60
5.6.100.0050.02517.61
5.6.90.0020.03417.68
5.6.80.0120.03717.31
5.6.70.1500.02617.17
5.6.60.0070.00714.12
5.6.50.0090.00613.98
5.6.40.0100.00313.98
5.6.30.0000.01514.01
5.6.20.0030.00914.30
5.6.10.0030.01014.25
5.6.00.0030.01014.21
5.5.380.0070.00310.79
5.5.370.0110.00011.08
5.5.360.0090.00310.88
5.5.350.0150.04115.63
5.5.340.0070.03814.45
5.5.330.0040.02515.51
5.5.320.0240.03215.65
5.5.310.0150.02715.66
5.5.300.0030.03814.38
5.5.290.0040.03714.38
5.5.280.0030.02315.95
5.5.270.0050.04815.87
5.5.260.0100.04415.74
5.5.250.0050.04015.79
5.5.240.2060.02015.41
5.5.230.0000.00910.63
5.5.220.0060.00010.68
5.5.210.0060.00610.86
5.5.200.0030.00310.93
5.5.190.0030.00510.97
5.5.180.0030.00311.04
5.5.170.0090.00311.04
5.5.160.0050.00010.96
5.5.150.0000.00811.00
5.5.140.0130.00010.77
5.5.130.0060.00610.49
5.5.120.0000.00710.66
5.5.110.0060.00310.98
5.5.100.0060.00611.21
5.5.90.0000.01010.69
5.5.80.0070.00410.66
5.5.70.0060.00611.03
5.5.60.0100.00010.63
5.5.50.0000.00810.93
5.5.40.0030.00310.71
5.5.30.0000.00710.78
5.5.20.0030.00310.92
5.5.10.0060.00310.87
5.5.00.0050.00510.83
5.4.450.0180.03215.10
5.4.440.0110.03915.09
5.4.430.0080.03015.17
5.4.420.0150.02615.28
5.4.410.0170.02315.20
5.4.400.0110.02814.76
5.4.390.0130.03114.90
5.4.380.0230.04314.72
5.4.370.0100.03514.79
5.4.360.0180.03214.57
5.4.350.0240.02714.70
5.4.340.0230.04314.55
5.4.330.0030.00710.84
5.4.320.0010.02711.60
5.4.310.0040.02711.64
5.4.300.0060.02211.63
5.4.290.0070.02111.61
5.4.280.0070.01711.65
5.4.270.0020.02311.68
5.4.260.0070.01811.53
5.4.250.0040.02111.61
5.4.240.0040.02111.69
5.4.230.0060.02211.65
5.4.220.0070.01911.61
5.4.210.0050.02111.46
5.4.200.0050.02211.48
5.4.190.0060.02011.57
5.4.180.0100.01711.54
5.4.170.0100.02911.61
5.4.160.0070.02811.67
5.4.150.0080.02511.61
5.4.140.0060.02111.33
5.4.130.0040.02611.43
5.4.120.0070.02011.42
5.4.110.0090.01911.35
5.4.100.0060.02911.30
5.4.90.0050.02311.33
5.4.80.0090.02011.41
5.4.70.0030.02311.35
5.4.60.0040.02211.37
5.4.50.0060.02111.33
5.4.40.0080.01911.43
5.4.30.0060.02211.41
5.4.20.0040.02211.42
5.4.10.0080.02511.47
5.4.00.0080.02311.21
5.3.290.0020.02511.61
5.3.280.0100.02311.50
5.3.270.0070.02211.54
5.3.260.0060.02411.57
5.3.250.0030.02511.45
5.3.240.0060.02411.53
5.3.230.0040.02511.59
5.3.220.0070.02211.54
5.3.210.0060.02311.54
5.3.200.0050.02111.54
5.3.190.0080.02211.49
5.3.180.0050.02111.54
5.3.170.0040.02211.51
5.3.160.0040.02311.54
5.3.150.0040.02211.57
5.3.140.0020.02611.54
5.3.130.0060.02011.56
5.3.120.0040.03011.42
5.3.110.0050.03111.50
5.3.100.0040.02511.21
5.3.90.0050.02311.25
5.3.80.0040.02311.10
5.3.70.0050.02111.15
5.3.60.0030.02311.23
5.3.50.0090.02011.19
5.3.40.0070.02911.05
5.3.30.0090.01611.13
5.3.20.0080.01711.05
5.3.10.0050.02010.93
5.3.00.0070.02010.86
5.2.170.0060.0219.49
5.2.160.0030.0219.28
5.2.150.0070.0229.44
5.2.140.0040.0249.39
5.2.130.0090.0209.41
5.2.120.0040.0189.49
5.2.110.0050.0229.32
5.2.100.0090.0229.50
5.2.90.0040.0229.38
5.2.80.0030.0279.33
5.2.70.0040.0229.35
5.2.60.0010.0219.30
5.2.50.0050.0189.29
5.2.40.0040.0169.29
5.2.30.0040.0199.25
5.2.20.0080.0219.23
5.2.10.0040.0159.14
5.2.00.0050.0219.10
5.1.60.0040.0168.67
5.1.50.0060.0168.67
5.1.40.0070.0168.66
5.1.30.0040.0188.83
5.1.20.0080.0128.85
5.1.10.0070.0138.71
5.1.00.0020.0168.71
5.0.50.0040.0127.95
5.0.40.0060.0097.88
5.0.30.0050.0187.78
5.0.20.0040.0147.77
5.0.10.0050.0117.76
5.0.00.0010.0207.76
4.4.90.0040.0097.03
4.4.80.0030.0107.01
4.4.70.0020.0117.02
4.4.60.0020.0137.01
4.4.50.0040.0117.02
4.4.40.0020.0196.99
4.4.30.0020.0117.02
4.4.20.0050.0107.06
4.4.10.0040.0137.06
4.4.00.0050.0157.02
4.3.110.0020.0126.97
4.3.100.0020.0116.97
4.3.90.0030.0106.96
4.3.80.0030.0156.93
4.3.70.0050.0096.95
4.3.60.0020.0116.95
4.3.50.0030.0106.95
4.3.40.0030.0146.91
4.3.30.0020.0126.28
4.3.20.0030.0136.27
4.3.10.0010.0146.23
4.3.00.0050.0119.79

preferences:
39.8 ms | 400 KiB | 5 Q