3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'testéa'; $string = html_entity_decode(preg_replace('~&([A-Za-z]{1,2})(?:acute|cedil|circ|grave|lig|orn|ring|slash|th|tilde|uml|caron);~', '$1', htmlentities($string, ENT_QUOTES, 'UTF-8')), ENT_QUOTES, 'UTF-8'); echo $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.0070.00718.14
8.3.50.0120.01022.05
8.3.40.0150.00418.76
8.3.30.0090.00618.96
8.3.20.0050.00220.20
8.3.10.0040.00421.90
8.3.00.0040.00418.89
8.2.180.0100.01016.50
8.2.170.0160.00322.96
8.2.160.0070.00722.21
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0080.00317.93
8.2.110.0050.00520.39
8.2.100.0080.00417.84
8.2.90.0040.00419.20
8.2.80.0050.00317.97
8.2.70.0000.00917.88
8.2.60.0000.00817.92
8.2.50.0090.00318.07
8.2.40.0050.00320.14
8.2.30.0040.00418.15
8.2.20.0040.00417.84
8.2.10.0060.00318.22
8.2.00.0000.00717.89
8.1.280.0110.00725.92
8.1.270.0080.00024.66
8.1.260.0110.00726.35
8.1.250.0030.01028.09
8.1.240.0030.00622.42
8.1.230.0030.00917.70
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.01017.38
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0000.01018.56
8.1.160.0000.00722.02
8.1.150.0030.00518.76
8.1.140.0040.00419.38
8.1.130.0050.00317.84
8.1.120.0030.00317.58
8.1.110.0040.00417.57
8.1.100.0000.00717.39
8.1.90.0070.00017.46
8.1.80.0000.00817.52
8.1.70.0000.00717.57
8.1.60.0000.00917.71
8.1.50.0030.00517.62
8.1.40.0000.00717.61
8.1.30.0040.00417.76
8.1.20.0000.00717.72
8.1.10.0040.00417.63
8.1.00.0000.00717.49
8.0.300.0050.00318.77
8.0.290.0000.00817.00
8.0.280.0000.00718.54
8.0.270.0000.00717.21
8.0.260.0030.00317.32
8.0.250.0000.00616.97
8.0.240.0000.00817.01
8.0.230.0070.00017.04
8.0.220.0070.00016.97
8.0.210.0000.00816.95
8.0.200.0030.00317.02
8.0.190.0040.00417.06
8.0.180.0000.00917.03
8.0.170.0000.00816.98
8.0.160.0000.00817.00
8.0.150.0000.00816.97
8.0.140.0040.00416.93
8.0.130.0070.00013.43
8.0.120.0040.00416.96
8.0.110.0060.00316.94
8.0.100.0040.00417.09
8.0.90.0000.00716.87
8.0.80.0130.00317.02
8.0.70.0000.00716.92
8.0.60.0000.00716.97
8.0.50.0000.00816.84
8.0.30.0130.01017.18
8.0.20.0160.00917.45
8.0.10.0000.00717.09
8.0.00.0100.01117.13
7.4.330.0000.00515.03
7.4.320.0070.00016.65
7.4.300.0000.00716.74
7.4.290.0000.00716.67
7.4.280.0080.00316.72
7.4.270.0030.00316.54
7.4.260.0030.00316.63
7.4.250.0000.00816.71
7.4.240.0060.00116.74
7.4.230.0000.00716.66
7.4.220.0130.00616.61
7.4.210.0130.00716.82
7.4.200.0040.00416.69
7.4.160.0050.01016.57
7.4.150.0100.01317.40
7.4.140.0120.00517.86
7.4.130.0080.01116.62
7.4.120.0120.00716.59
7.4.110.0130.01316.55
7.4.100.0000.01716.62
7.4.90.0070.01016.68
7.4.80.0030.01319.39
7.4.70.0090.00916.43
7.4.60.0120.00316.73
7.4.50.0080.00016.65
7.4.40.0100.00716.51
7.4.30.0090.01216.69
7.4.00.0000.01414.80
7.3.330.0030.00313.09
7.3.320.0030.00613.25
7.3.310.0000.00716.45
7.3.300.0060.00016.30
7.3.290.0080.00616.36
7.3.280.0110.00716.33
7.3.270.0080.01517.40
7.3.260.0100.00616.40
7.3.250.0080.00916.38
7.3.240.0070.01016.61
7.3.230.0110.01116.67
7.3.210.0100.00716.45
7.3.200.0110.01119.39
7.3.190.0110.00516.29
7.3.180.0040.01116.41
7.3.170.0120.00916.39
7.3.160.0100.00716.78
7.2.330.0080.00816.52
7.2.320.0070.01116.75
7.2.310.0110.01116.72
7.2.300.0090.01016.61
7.2.290.0030.01916.76
7.2.00.0040.01119.30
7.1.100.0000.01018.14
7.1.70.0040.00717.34
7.1.60.0140.01119.46
7.1.50.0160.00916.87
7.1.00.0070.07322.44
7.0.200.0000.00817.00
7.0.140.0030.06022.18
7.0.60.0100.06020.03
7.0.50.0100.06017.85
7.0.40.0070.04320.26
7.0.30.0370.07320.03
7.0.20.0270.08320.15
7.0.10.0000.05020.32
7.0.00.0070.05020.18
5.6.280.0100.06721.02
5.6.210.0000.08720.60
5.6.200.0170.07318.12
5.6.190.0000.05720.53
5.6.180.0430.06720.45
5.6.170.0270.08020.44
5.6.160.0170.07320.59
5.6.150.0200.06318.12
5.6.140.0030.05318.16
5.6.130.0070.08318.15
5.6.120.0070.08720.89
5.6.110.0030.08720.99
5.6.100.0070.08320.88
5.6.90.0100.08720.96
5.6.80.0130.07020.52
5.5.350.4130.03720.42
5.5.340.0130.07317.95
5.5.330.0070.04320.09
5.5.320.0070.08320.29
5.5.310.0200.05320.28
5.5.300.0070.07017.96
5.5.290.0000.05717.99
5.5.280.0100.07720.86
5.5.270.0030.06320.88
5.5.260.0000.04720.86
5.5.250.0000.04320.68
5.5.240.0430.05720.12
5.4.450.3130.03019.42
5.4.440.3430.03719.13
5.4.430.3930.04319.20
5.4.420.3370.04019.60
5.4.410.3630.04019.28
5.4.400.3570.03319.08
5.4.390.3700.03719.08
5.4.380.3770.04018.79
5.4.370.4370.03319.10
5.4.360.3700.04319.16
5.4.350.3470.03018.80
5.4.340.3670.04318.80
5.4.320.3670.03718.92
5.4.310.3930.04018.85
5.4.300.0030.06319.24
5.4.290.0070.05019.09
5.4.280.3630.04019.09
5.4.270.4030.03019.22
5.4.260.3570.03718.88
5.4.250.3700.04318.93
5.4.240.3700.03318.91
5.4.230.3430.04319.09
5.4.220.3900.04319.05
5.4.210.3600.03719.07
5.4.200.3530.03319.07
5.4.190.1470.04019.09
5.4.180.0070.04018.91
5.4.170.3430.03719.23
5.4.160.3400.03718.86
5.4.150.4000.03718.78
5.4.140.4300.03716.26
5.4.130.4400.02716.25
5.4.120.3400.03716.27
5.4.110.4470.04016.34
5.4.100.3630.03316.34
5.4.90.3570.02716.45
5.4.80.3370.03716.20
5.4.70.3400.03316.41
5.4.60.3570.03316.19
5.4.50.3830.04716.20
5.4.40.3630.03716.38
5.4.30.3930.03716.47
5.4.20.3700.02716.36
5.4.10.3230.03716.36
5.4.00.2030.03715.70
5.3.290.4600.03314.73
5.3.280.3800.03314.68
5.3.270.3570.04314.46
5.3.260.3430.03714.43
5.3.250.4370.03714.55
5.3.240.4270.03314.44
5.3.230.4100.04014.50
5.3.220.3730.02714.66
5.3.210.2930.03314.54
5.3.200.3530.04314.65
5.3.190.3670.03714.53
5.3.180.3770.03314.45
5.3.170.3700.03714.50
5.3.160.3200.03314.61
5.3.150.3800.03014.41
5.3.140.3630.04314.40
5.3.130.3700.04014.48
5.3.120.3700.03314.42
5.3.110.3830.04314.45
5.3.100.1900.04013.94
5.3.90.2970.03313.86
5.3.80.3030.03313.86
5.3.70.3470.03314.11
5.3.60.3330.04313.87
5.3.50.3270.03713.90
5.3.40.3200.04013.88
5.3.30.3300.03013.95
5.3.20.3330.02713.78
5.3.10.3400.03313.49
5.3.00.3370.03313.54
5.2.170.2430.02711.30
5.2.160.2170.02711.01
5.2.150.2170.03311.19
5.2.140.2600.02311.00
5.2.130.2830.03011.03
5.2.120.2800.03311.15
5.2.110.2870.02010.95
5.2.100.2930.02710.95
5.2.90.3200.02311.12
5.2.80.2870.02710.98
5.2.70.3000.03010.95
5.2.60.3470.03310.91
5.2.50.3500.02711.06
5.2.40.2970.03311.02
5.2.30.2670.02710.99
5.2.20.2730.02710.87
5.2.10.2530.03010.88
5.2.00.2270.02710.63
5.1.60.2600.02710.58
5.1.50.2570.02710.63
5.1.40.2400.03010.70
5.1.30.2570.03310.70
5.1.20.2370.02310.70
5.1.10.2430.03010.76
5.1.00.2630.03010.76
5.0.50.1400.02710.84
5.0.40.1470.02010.93
5.0.30.1300.03311.02
5.0.20.1330.02311.19
5.0.10.1330.02311.30
5.0.00.1170.02711.32
4.4.90.1170.01310.10
4.4.80.1670.01710.13
4.4.70.1570.01310.33
4.4.60.1630.01710.52
4.4.50.1200.02010.58
4.4.40.1300.02710.58
4.4.30.1270.02010.64
4.4.20.1200.02010.70
4.4.10.1130.01310.76
4.4.00.1430.03010.84
4.3.110.1300.02010.93
4.3.100.1270.02011.02
4.3.90.1270.01311.19
4.3.80.1530.02311.32
4.3.70.1400.02011.45
4.3.60.1400.02011.58
4.3.50.1370.02011.70
4.3.40.1030.03711.85
4.3.30.0930.01311.93
4.3.20.0930.01712.05
4.3.10.0830.01312.16
4.3.00.0500.02012.16

preferences:
41 ms | 401 KiB | 5 Q