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}]~', '', $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.40.0100.00618.82
8.3.30.0040.01119.02
8.3.20.0050.00318.91
8.3.10.0040.00420.65
8.3.00.0000.00819.38
8.2.170.0040.01122.96
8.2.160.0080.00621.23
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00019.49
8.2.110.0070.01022.24
8.2.100.0080.00417.89
8.2.90.0040.00417.91
8.2.80.0030.00517.97
8.2.70.0060.00317.63
8.2.60.0030.00717.93
8.2.50.0030.00618.07
8.2.40.0040.00418.12
8.2.30.0000.00818.15
8.2.20.0040.00417.68
8.2.10.0040.00417.74
8.2.00.0070.00017.87
8.1.270.0000.00824.66
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0140.00322.19
8.1.230.0080.00420.93
8.1.220.0000.00817.77
8.1.210.0080.00018.85
8.1.200.0030.00617.25
8.1.190.0050.00317.40
8.1.180.0030.00518.10
8.1.170.0000.00918.75
8.1.160.0000.00718.73
8.1.150.0040.00418.64
8.1.140.0040.00417.54
8.1.130.0000.00717.85
8.1.120.0040.00417.55
8.1.110.0040.00417.45
8.1.100.0070.00017.61
8.1.90.0030.00417.43
8.1.80.0000.00817.55
8.1.70.0000.00717.38
8.1.60.0030.00617.68
8.1.50.0040.00417.58
8.1.40.0040.00417.57
8.1.30.0030.00517.77
8.1.20.0040.00417.79
8.1.10.0040.00417.63
8.1.00.0080.00017.52
8.0.300.0000.00819.88
8.0.290.0000.00716.75
8.0.280.0030.00318.38
8.0.270.0070.00017.17
8.0.260.0030.00317.02
8.0.250.0050.00217.08
8.0.240.0000.00717.07
8.0.230.0030.00316.94
8.0.220.0070.00017.00
8.0.210.0000.00716.95
8.0.200.0030.00317.04
8.0.190.0030.00316.94
8.0.180.0040.00416.92
8.0.170.0000.00916.88
8.0.160.0000.00716.95
8.0.150.0080.00016.95
8.0.140.0060.00316.83
8.0.130.0060.00013.45
8.0.120.0040.00416.94
8.0.110.0030.00516.84
8.0.100.0030.00316.95
8.0.90.0030.00516.88
8.0.80.0120.00316.97
8.0.70.0000.00717.01
8.0.60.0000.00717.01
8.0.50.0040.00416.83
8.0.30.0100.01017.04
8.0.20.0090.01017.08
8.0.10.0070.00016.95
8.0.00.0150.00516.81
7.4.330.0000.00513.14
7.4.320.0000.00616.61
7.4.300.0060.00016.66
7.4.290.0000.00716.51
7.4.280.0040.00416.80
7.4.270.0000.00716.80
7.4.260.0000.00513.42
7.4.250.0030.00516.79
7.4.240.0080.00016.75
7.4.230.0030.00316.56
7.4.220.0110.00716.63
7.4.210.0050.01116.67
7.4.200.0060.00316.77
7.4.190.0080.00016.71
7.4.160.0100.00616.61
7.4.150.0100.01016.45
7.4.140.0070.01116.62
7.4.130.0090.01116.53
7.4.120.0100.00716.68
7.4.110.0110.01116.59
7.4.100.0130.00316.82
7.4.90.0100.00716.59
7.4.80.0100.00719.39
7.4.70.0170.00016.73
7.4.60.0060.01216.75
7.4.50.0040.00016.56
7.4.40.0060.00616.62
7.4.30.0120.00316.42
7.4.00.0080.00415.20
7.3.330.0000.00613.14
7.3.320.0000.00613.20
7.3.310.0000.00716.28
7.3.300.0030.00516.13
7.3.290.0110.01116.30
7.3.280.0110.00716.35
7.3.270.0120.00616.72
7.3.260.0100.00716.37
7.3.250.0130.00416.58
7.3.240.0030.01316.39
7.3.230.0070.01016.41
7.3.210.0120.00616.35
7.3.200.0060.01516.65
7.3.190.0070.01116.34
7.3.180.0130.00316.48
7.3.170.0030.01316.82
7.3.160.0070.01016.28
7.3.120.0040.01414.80
7.3.110.0070.00714.74
7.3.100.0000.01314.85
7.3.90.0040.00715.02
7.3.80.0090.00315.22
7.3.70.0100.00314.96
7.3.60.0030.00614.95
7.3.50.0060.01214.98
7.3.40.0070.00814.80
7.3.30.0030.00614.96
7.3.20.0070.01016.71
7.3.10.0040.00716.81
7.3.00.0100.00316.83
7.2.330.0100.00716.70
7.2.320.0030.01516.75
7.2.310.0080.01216.93
7.2.300.0120.00916.88
7.2.290.0100.00716.48
7.2.240.0030.01015.21
7.2.230.0030.01215.05
7.2.220.0110.00414.90
7.2.210.0060.00915.09
7.2.200.0000.01115.16
7.2.190.0030.01315.17
7.2.180.0160.00015.25
7.2.170.0090.00615.03
7.2.160.0090.00615.28
7.2.150.0030.01317.07
7.2.140.0000.01617.03
7.2.130.0120.00016.85
7.2.120.0110.00317.15
7.2.110.0060.00917.06
7.2.100.0070.00717.10
7.2.90.0080.00816.80
7.2.80.0040.01416.95
7.2.70.0100.00316.93
7.2.60.0030.01217.02
7.2.50.0110.00417.21
7.2.40.0040.01117.05
7.2.30.0030.01316.82
7.2.20.0040.01116.88
7.2.10.0000.01417.02
7.2.00.0030.01018.15
7.1.330.0000.01416.07
7.1.320.0000.01715.94
7.1.310.0060.00915.96
7.1.300.0030.00915.90
7.1.290.0000.00915.65
7.1.280.0140.00015.67
7.1.270.0000.01215.98
7.1.260.0030.01016.07
7.1.250.0130.00315.83
7.1.100.0070.00317.92
7.1.70.0030.00717.18
7.1.60.0110.01119.40
7.1.50.0140.00717.13
7.1.00.0030.07322.29
7.0.200.0140.00314.92
7.0.140.0000.07321.97
7.0.120.0000.07322.00
7.0.60.0070.06319.85
7.0.50.0070.03717.86
7.0.40.0130.08720.05
7.0.30.0200.05720.18
7.0.20.0270.08320.34
7.0.10.0300.05020.14
7.0.00.0030.06720.02
5.6.280.0030.07321.01
5.6.210.0030.09320.47
5.6.200.0070.04018.09
5.6.190.0130.04020.67
5.6.180.0270.08020.36
5.6.170.0200.04720.34
5.6.160.0100.07720.33
5.6.150.0130.03018.18
5.6.140.0100.07318.20
5.6.130.0070.03718.11
5.6.120.0300.03020.94
5.6.110.0030.07721.00
5.6.100.0030.08021.01
5.6.90.0230.07320.98
5.6.80.0170.07320.28
5.6.70.0170.06720.49
5.5.350.0170.03320.46
5.5.340.0100.08017.88
5.5.330.0000.04320.07
5.5.320.0130.07020.23
5.5.310.0270.04720.19
5.5.300.0070.05017.89
5.5.290.0070.06317.89
5.5.280.0030.05720.73
5.5.270.0070.04020.86
5.5.260.0100.06020.86
5.5.250.0000.05020.62
5.5.240.0070.08020.03
5.4.450.0230.05019.46
5.4.440.0230.07719.39
5.4.430.0330.06719.40
5.4.420.0300.07319.40
5.4.410.0200.05319.00
5.4.400.0270.04018.94
5.4.390.0230.08019.16
5.4.380.0230.05018.92
5.4.370.0300.05718.78
5.4.360.0230.04318.92
5.4.350.0270.07718.88
5.4.340.0230.05319.16
5.4.320.0270.04719.21
5.4.310.0200.07319.25
5.4.300.0270.07718.81
5.4.290.0200.07018.77
5.4.280.0200.03719.21
5.4.270.0300.05019.10
5.4.260.0300.04319.08
5.4.250.0200.07019.23
5.4.240.0200.05019.15
5.4.230.0330.06319.12
5.4.220.0400.05719.14
5.4.210.0370.06319.07
5.4.200.0330.05319.09
5.4.190.0230.05019.09
5.4.180.0200.05018.77
5.4.170.0200.05018.92
5.4.160.0330.05719.22
5.4.150.0230.06018.75
5.4.140.0270.05016.21
5.4.130.0230.07016.34
5.4.120.0270.06316.40
5.4.110.0300.06716.43
5.4.100.0270.04016.47
5.4.90.0270.04016.43
5.4.80.0200.07316.47
5.4.70.0170.03716.37
5.4.60.0270.06316.36
5.4.50.0270.04316.18
5.4.40.0200.04716.41
5.4.30.0270.06716.48
5.4.20.0230.05316.20
5.4.10.0300.04016.19
5.4.00.0200.04315.70
5.3.290.0230.06014.54
5.3.280.0230.04714.44
5.3.270.0330.04314.45
5.3.260.0230.05014.47
5.3.250.0170.06014.47
5.3.240.0230.03314.44
5.3.230.0200.07714.43
5.3.220.0300.06014.40
5.3.210.0300.06314.50
5.3.200.0230.06714.55
5.3.190.0100.05014.51
5.3.180.0200.04714.39
5.3.170.0230.03314.40
5.3.160.0200.07314.50
5.3.150.0300.07014.51
5.3.140.0200.05014.50
5.3.130.0200.05014.50
5.3.120.0200.04314.39
5.3.110.0170.06714.48
5.3.100.0230.07014.02
5.3.90.0200.06713.96
5.3.80.0230.06713.87
5.3.70.0300.06313.86
5.3.60.0170.03713.96
5.3.50.0100.04713.98
5.3.40.0170.05313.89
5.3.30.0130.07313.85
5.3.20.0170.07313.46
5.3.10.0170.04313.61
5.3.00.0200.07013.51
5.2.170.0200.05712.29
5.2.160.0130.03712.29
5.2.150.0130.03012.29
5.2.140.0170.06012.29
5.2.130.0230.05712.29
5.2.120.0130.04712.29
5.2.110.0200.05012.29
5.2.100.0170.03012.29
5.2.90.0200.05712.29
5.2.80.0230.05712.29
5.2.70.0270.04012.29
5.2.60.0270.05012.29
5.2.50.0100.05012.29
5.2.40.0100.03712.29
5.2.30.0200.02312.29
5.2.20.0170.05712.29
5.2.10.0200.05312.29
5.2.00.0200.05312.29
5.1.60.0170.05712.29
5.1.50.0130.04312.29
5.1.40.0230.02312.29
5.1.30.0070.03312.29
5.1.20.0170.05312.29
5.1.10.0130.05312.29
5.1.00.0130.03012.29
5.0.50.0070.02312.29
5.0.40.0100.01712.29
5.0.30.0100.03712.29
5.0.20.0070.04712.29
5.0.10.0100.04012.29
5.0.00.0130.03312.29
4.4.90.0170.02012.29
4.4.80.0130.01712.29
4.4.70.0130.03012.29
4.4.60.0100.03312.29
4.4.50.0030.02312.29
4.4.40.0030.05012.29
4.4.30.0200.02312.29
4.4.20.0030.02312.29
4.4.10.0130.02712.29
4.4.00.0100.05012.29
4.3.110.0130.02312.29
4.3.100.0070.03012.29
4.3.90.0070.03012.29
4.3.80.0070.03312.29
4.3.70.0100.02712.29
4.3.60.0070.02312.29
4.3.50.0100.02712.29
4.3.40.0100.03312.29
4.3.30.0030.03712.29
4.3.20.0000.02312.29
4.3.10.0030.03312.29
4.3.00.0000.02312.29

preferences:
34.97 ms | 400 KiB | 5 Q