3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = "°Freen\x18 ew°\x90ɮ\x7F\xc2"; //$result = preg_replace('~[\x{0000}-\x{000F}\x{007F}-\x{00a0}]~S', '', $result); $result = preg_replace('~[\x{0000}-\x{000F}\x{007F}-\x{00a0}]~u', '', $result); $result = preg_replace('/\xC2\xA0/', '', $result); /* //reject overly long 2 byte sequences, as well as characters above U+10000 and replace with ? $result= preg_replace( '/[\xC2-\xDF]((?![\x80-\xBF])|[\x80-\xBF]{2,})/S', '', $result ); */ echo $result;

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.00716.75
8.3.50.0100.01017.51
8.3.40.0040.01119.10
8.3.30.0090.00618.88
8.3.20.0040.00419.02
8.3.10.0050.00520.79
8.3.00.0030.00719.50
8.2.180.0120.00917.13
8.2.170.0090.00622.96
8.2.160.0070.00721.18
8.2.150.0060.00324.18
8.2.140.0070.00724.66
8.2.130.0000.00826.16
8.2.120.0050.00319.61
8.2.110.0050.00520.48
8.2.100.0110.00017.72
8.2.90.0100.00019.17
8.2.80.0050.00317.93
8.2.70.0050.00317.88
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0040.00418.28
8.2.30.0040.00417.95
8.2.20.0100.00017.91
8.2.10.0030.00617.99
8.2.00.0000.00717.95
8.1.280.0070.00725.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00323.77
8.1.230.0040.00722.16
8.1.220.0040.00417.74
8.1.210.0080.00020.69
8.1.200.0100.00017.35
8.1.190.0090.00017.41
8.1.180.0050.00318.10
8.1.170.0000.00818.96
8.1.160.0070.00018.79
8.1.150.0040.00418.73
8.1.140.0040.00417.53
8.1.130.0040.00417.71
8.1.120.0040.00417.58
8.1.110.0040.00417.46
8.1.100.0000.00717.48
8.1.90.0000.00817.57
8.1.80.0030.00317.42
8.1.70.0000.00717.53
8.1.60.0030.00517.55
8.1.50.0080.00017.45
8.1.40.0080.00017.58
8.1.30.0090.00017.61
8.1.20.0090.00017.67
8.1.10.0080.00017.52
8.1.00.0000.00817.56
8.0.300.0040.00419.89
8.0.290.0000.00716.88
8.0.280.0030.00318.45
8.0.270.0000.00717.11
8.0.260.0000.00616.88
8.0.250.0040.00417.13
8.0.240.0030.00517.12
8.0.230.0040.00417.11
8.0.220.0040.00417.05
8.0.210.0030.00616.92
8.0.200.0030.00317.15
8.0.190.0000.00816.92
8.0.180.0000.00717.05
8.0.170.0080.00017.01
8.0.160.0040.00416.96
8.0.150.0040.00416.97
8.0.140.0040.00416.88
8.0.130.0060.00013.49
8.0.120.0000.00716.98
8.0.110.0040.00416.85
8.0.100.0000.00717.02
8.0.90.0000.00717.00
8.0.80.0070.01116.93
8.0.70.0080.00016.93
8.0.60.0030.00516.92
8.0.50.0000.00817.02
8.0.30.0090.01017.32
8.0.20.0090.00917.30
8.0.10.0040.00416.93
8.0.00.0090.01116.90
7.4.330.0050.00013.18
7.4.320.0080.00016.59
7.4.300.0000.00716.54
7.4.290.0000.00716.64
7.4.280.0000.00816.79
7.4.270.0000.00716.71
7.4.260.0080.00013.31
7.4.250.0040.00416.60
7.4.240.0000.00716.61
7.4.230.0070.00016.77
7.4.220.0060.01216.79
7.4.210.0100.00716.80
7.4.200.0000.00716.55
7.4.190.0030.00316.82
7.4.160.0040.01116.54
7.4.150.0090.00816.66
7.4.140.0100.01016.65
7.4.130.0080.01016.61
7.4.120.0100.00716.63
7.4.110.0150.00616.68
7.4.100.0100.00716.55
7.4.90.0100.01316.64
7.4.80.0100.00616.52
7.4.70.0100.01016.86
7.4.60.0150.00816.70
7.4.50.0030.00316.37
7.4.40.0060.00916.55
7.4.30.0000.01716.59
7.4.00.0040.01115.34
7.3.330.0070.00013.27
7.3.320.0000.00513.32
7.3.310.0030.00616.34
7.3.300.0060.00316.38
7.3.290.0100.00716.41
7.3.280.0040.01316.42
7.3.270.0130.00316.60
7.3.260.0120.00516.74
7.3.250.0090.01116.55
7.3.240.0060.01216.57
7.3.230.0040.01416.56
7.3.210.0100.00616.39
7.3.200.0130.01019.39
7.3.190.0070.01016.37
7.3.180.0060.01016.55
7.3.170.0120.00316.55
7.3.160.0040.01116.36
7.3.120.0060.00914.91
7.2.330.0070.01416.67
7.2.320.0130.00316.73
7.2.310.0150.00416.82
7.2.300.0100.00716.64
7.2.290.0080.00916.50
7.2.60.0070.00717.11
7.2.00.0040.01119.80
7.1.200.0070.00315.93
7.1.70.0040.00417.36
7.1.60.0000.01017.42
7.1.50.0030.01217.03
7.1.00.0030.04722.32
7.0.200.0000.00716.60
7.0.140.0030.07321.95
7.0.120.0070.07022.00
7.0.60.0030.04720.00
7.0.50.0030.04017.77
7.0.40.0030.05720.08
7.0.30.0600.06320.15
7.0.20.0200.06720.05
7.0.10.0000.08720.20
7.0.00.0070.09020.02
5.6.280.0070.07021.03
5.6.210.0100.06720.74
5.6.200.0130.07318.17
5.6.190.0030.04320.41
5.6.180.3770.04020.42
5.6.170.0230.03720.50
5.6.160.0030.09320.33
5.6.150.0000.04318.21
5.6.140.0030.03718.14
5.6.130.0030.05718.12
5.6.120.0130.03321.03
5.6.110.0070.08321.00
5.6.100.0070.08721.00
5.6.90.0000.07320.96
5.6.80.0130.06720.52
5.6.70.4300.04320.39
5.5.350.0200.03320.44
5.5.340.0070.06717.95
5.5.330.0100.04020.21
5.5.320.3270.03320.25
5.5.310.0300.05320.20
5.5.300.0070.05317.91
5.5.290.0030.04018.02
5.5.280.0030.05720.97
5.5.270.0030.04020.75
5.5.260.0330.04320.71
5.5.250.0130.07720.68
5.5.240.0270.07320.23
5.4.450.0030.04019.11
5.4.440.0100.07719.46
5.4.430.0070.07719.41
5.4.420.0200.03019.47
5.4.410.0070.07719.35
5.4.400.0130.07019.18
5.4.390.0330.05318.80
5.4.380.0100.07019.14
5.4.370.0030.08019.10
5.4.360.0100.06318.91
5.4.350.0100.07718.91
5.4.340.0070.07019.15
5.4.320.0030.05018.79
5.4.310.0130.06319.12
5.4.300.0070.05719.19
5.4.290.0130.06719.15
5.4.280.0030.07319.08
5.4.270.0070.06019.18
5.4.260.0030.08019.17
5.4.250.0130.05719.11
5.4.240.0070.07719.17
5.4.230.0070.07719.11
5.4.220.0100.03718.77
5.4.210.0030.06719.07
5.4.200.0100.03718.78
5.4.190.0070.04719.04
5.4.180.0130.04018.80
5.4.170.0130.04719.13
5.4.160.0070.08018.89
5.4.150.0070.07319.09
5.4.140.0130.07016.35
5.4.130.0100.03716.36
5.4.120.0030.04016.43
5.4.110.0130.06016.23
5.4.100.0030.04316.41
5.4.90.0030.04316.25
5.4.80.0030.07716.41
5.4.70.0070.06316.29
5.4.60.0270.05716.38
5.4.50.0070.04016.30
5.4.40.0070.04016.25
5.4.30.0000.06016.12
5.4.20.0000.04016.43
5.4.10.0100.07016.21
5.4.00.0130.05315.79
5.3.290.0070.07314.48
5.3.280.0100.04314.51
5.3.270.0030.07014.52
5.3.260.0170.07014.52
5.3.250.0070.06314.48
5.3.240.0130.07014.68
5.3.230.0070.04014.56
5.3.220.0070.05014.50
5.3.210.0170.07714.53
5.3.200.0030.05714.57
5.3.190.0030.04714.50
5.3.180.0130.06314.34
5.3.170.0070.07314.50
5.3.160.0100.07014.50
5.3.150.0070.05714.49
5.3.140.0100.03714.48
5.3.130.0100.06714.46
5.3.120.0070.03714.48
5.3.110.0100.03014.46
5.3.100.0030.08013.98
5.3.90.0070.07313.96
5.3.80.0070.03313.95
5.3.70.0030.03713.99
5.3.60.0030.03713.82
5.3.50.0030.07713.91
5.3.40.0030.06313.88
5.3.30.0070.03713.84
5.3.20.0070.05713.63
5.3.10.0070.06313.61
5.3.00.0100.06313.72
5.2.170.0030.04011.12
5.2.160.0070.06011.22
5.2.150.0100.05311.04
5.2.140.0100.05711.00
5.2.130.0070.05711.09
5.2.120.0030.06711.03
5.2.110.0100.05711.07
5.2.100.0000.05010.96
5.2.90.0130.05711.09
5.2.80.0100.05011.02
5.2.70.0170.05311.07
5.2.60.0030.03711.03
5.2.50.0030.06311.17
5.2.40.0030.04310.81
5.2.30.0070.03310.90
5.2.20.0030.03010.89
5.2.10.0070.06310.89
5.2.00.0030.06710.59
5.1.60.0070.04310.06
5.1.50.0030.05710.05
5.1.40.0030.0509.87
5.1.30.0070.02710.34
5.1.20.0030.04010.35
5.1.10.0030.0279.97
5.1.00.0070.05310.08
5.0.50.0070.0438.49
5.0.40.0000.0238.39
5.0.30.0030.0478.26
5.0.20.0100.0338.21
5.0.10.0070.0278.21
5.0.00.0030.0678.30
4.4.90.0130.0278.21
4.4.80.0000.0278.21
4.4.70.0000.0308.21
4.4.60.0030.0208.21
4.4.50.0000.0178.21
4.4.40.0030.0278.21
4.4.30.0100.0208.21
4.4.20.0100.0138.21
4.4.10.0000.0238.21
4.4.00.0070.0478.21
4.3.110.0030.0238.21
4.3.100.0000.0238.21
4.3.90.0000.0308.21
4.3.80.0170.0508.21
4.3.70.0070.0108.21
4.3.60.0070.0238.21
4.3.50.0000.0338.21
4.3.40.0000.0438.21
4.3.30.0000.0308.21
4.3.20.0030.0208.21
4.3.10.0030.0338.21
4.3.00.0000.0308.21

preferences:
48.19 ms | 401 KiB | 5 Q