3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = "°Freen\x18ew°\x90ɮ\xa0"; //$result = trim($result,"\xc2"/*"\xa0"*/); //echo preg_replace('#[\x00-\x1F\x7F-\x9F]#S', '', $result); //echo preg_replace('~[\x{0000}-\x{001F}\x{007F}-\x{00a0}]~', '', $result); echo preg_replace('~[\x{007F}-\x{00a0}]~', '', $result); /* //reject overly long 2 byte sequences, as well as characters above U+10000 and replace with ? $result= preg_replace('/[\x00-\x08\x10\x0B\x0C\x0E-\x19\x7F]'. '|[\x00-\x7F][\x80-\xBF]+'. '|([\xC0\xC1]|[\xF0-\xFF])[\x80-\xBF]*'. '|[\xC2-\xDF]((?![\x80-\xBF])|[\x80-\xBF]{2,})'. '|[\xE0-\xEF](([\x80-\xBF](?![\x80-\xBF]))|(?![\x80-\xBF]{2})|[\x80-\xBF]{3,})/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.5.10.0080.00920.12
8.5.00.0100.01120.05
8.4.150.0030.00014.05
8.4.140.0090.01117.68
8.4.130.0150.00518.91
8.4.120.0050.00624.23
8.4.110.0110.00920.36
8.4.100.0080.00319.05
8.4.90.0160.00518.92
8.4.80.0030.00519.59
8.4.70.0040.00518.23
8.4.60.0110.00918.86
8.4.50.0130.00718.50
8.4.40.0060.00318.05
8.4.30.0130.00717.48
8.4.20.0030.00517.72
8.4.10.0130.00717.57
8.3.280.0090.01118.26
8.3.270.0140.00716.55
8.3.260.0050.00416.64
8.3.250.0050.00218.90
8.3.240.0140.00517.13
8.3.230.0120.00616.79
8.3.220.0050.00317.07
8.3.210.0110.00816.77
8.3.200.0050.00616.56
8.3.190.0100.00517.18
8.3.180.0130.00516.50
8.3.170.0100.00318.78
8.3.160.0070.00717.11
8.3.150.0130.00719.03
8.3.140.0050.00317.23
8.3.130.0050.00318.28
8.3.120.0050.00518.75
8.3.110.0040.00818.38
8.3.100.0050.01018.28
8.3.90.0040.00426.77
8.3.80.0050.00516.63
8.3.70.0090.00616.63
8.3.60.0120.00618.55
8.3.50.0150.00721.21
8.3.40.0140.00018.96
8.3.30.0130.00020.34
8.3.20.0080.00020.31
8.3.10.0030.00622.09
8.3.00.0030.00522.46
8.2.290.0070.00920.70
8.2.280.0130.00620.36
8.2.270.0130.00320.45
8.2.260.0000.00818.29
8.2.250.0140.00418.68
8.2.240.0080.00018.97
8.2.230.0070.00320.94
8.2.220.0040.00424.06
8.2.210.0100.01026.77
8.2.200.0090.00018.27
8.2.190.0170.00316.63
8.2.180.0080.01116.75
8.2.170.0090.00918.89
8.2.160.0070.01022.96
8.2.150.0040.00425.66
8.2.140.0030.00624.66
8.2.130.0050.00326.16
8.2.120.0070.00020.75
8.2.110.0070.00321.98
8.2.100.0030.00718.03
8.2.90.0030.00619.05
8.2.80.0000.00719.34
8.2.70.0040.00417.63
8.2.60.0000.00917.93
8.2.50.0030.00618.07
8.2.40.0060.00317.91
8.2.30.0020.00519.40
8.2.20.0040.00417.95
8.2.10.0070.00017.68
8.2.00.0000.00817.70
8.1.330.0110.00822.04
8.1.320.0120.00716.48
8.1.310.0080.00018.32
8.1.300.0170.00316.55
8.1.290.0030.00630.84
8.1.280.0120.00625.92
8.1.270.0000.00823.99
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00624.02
8.1.230.0000.01019.16
8.1.220.0030.00617.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00817.28
8.1.180.0040.00419.14
8.1.170.0080.00018.77
8.1.160.0040.00420.51
8.1.150.0070.00018.68
8.1.140.0070.00017.58
8.1.130.0060.00317.82
8.1.120.0050.00217.53
8.1.110.0070.00017.58
8.1.100.0000.00717.58
8.1.90.0040.00417.59
8.1.80.0040.00417.52
8.1.70.0040.00417.48
8.1.60.0000.01017.68
8.1.50.0000.00817.59
8.1.40.0000.00717.50
8.1.30.0000.00817.70
8.1.20.0040.00417.74
8.1.10.0040.00417.60
8.1.00.0070.00317.50
8.0.300.0070.00018.77
8.0.290.0070.00017.05
8.0.280.0070.00018.54
8.0.270.0030.00317.31
8.0.260.0030.00316.97
8.0.250.0060.00017.12
8.0.240.0040.00416.98
8.0.230.0070.00016.93
8.0.220.0000.00817.02
8.0.210.0070.00016.91
8.0.200.0070.00017.03
8.0.190.0040.00416.93
8.0.180.0000.00716.91
8.0.170.0090.00016.88
8.0.160.0030.00617.06
8.0.150.0070.00016.83
8.0.140.0040.00416.93
8.0.130.0030.00313.38
8.0.120.0060.00316.95
8.0.110.0040.00416.82
8.0.100.0040.00416.89
8.0.90.0040.00416.98
8.0.80.0130.00316.89
8.0.70.0070.00016.97
8.0.60.0050.00217.02
8.0.50.0020.00517.00
8.0.30.0100.01017.22
8.0.20.0060.01417.44
8.0.10.0000.00817.14
8.0.00.0090.01417.03
7.4.330.0040.00015.00
7.4.320.0030.00316.70
7.4.300.0070.00016.78
7.4.290.0000.00716.63
7.4.280.0070.00016.75
7.4.270.0000.00716.77
7.4.260.0030.00313.44
7.4.250.0040.00416.71
7.4.240.0010.00616.76
7.4.230.0040.00416.54
7.4.220.0120.00616.86
7.4.210.0080.00616.68
7.4.200.0000.00716.48
7.4.190.0000.00716.84
7.4.160.0060.01216.64
7.4.150.0170.00417.40
7.4.140.0070.01117.86
7.4.130.0080.01116.62
7.4.120.0090.00816.71
7.4.110.0080.01116.92
7.4.100.0080.00816.52
7.4.90.0040.01416.54
7.4.80.0000.01719.39
7.4.70.0030.01316.63
7.4.60.0060.01016.59
7.4.50.0030.00316.38
7.4.40.0060.01022.77
7.4.30.0100.01016.54
7.4.00.0030.01415.11
7.3.330.0060.00013.19
7.3.320.0000.00513.01
7.3.310.0050.00316.22
7.3.300.0070.00016.32
7.3.290.0060.00916.39
7.3.280.0070.01016.28
7.3.270.0170.00017.40
7.3.260.0070.01016.54
7.3.250.0080.01016.56
7.3.240.0140.00916.27
7.3.230.0070.01016.39
7.3.210.0110.01416.63
7.3.200.0150.00319.39
7.3.190.0130.00316.41
7.3.180.0130.00316.43
7.3.170.0040.01216.39
7.3.160.0090.00616.58
7.3.120.0100.00715.24
7.2.330.0100.01016.54
7.2.320.0100.01016.48
7.2.310.0060.01216.67
7.2.300.0100.00716.61
7.2.290.0120.00616.65
7.2.00.0000.01419.58
7.1.100.0060.00818.09
7.1.70.0000.00717.35
7.1.60.0040.02119.32
7.1.50.0140.01117.14
7.1.00.0030.03322.46
7.0.200.0370.00914.14
7.0.140.0030.07322.00
7.0.60.0400.06319.93
7.0.50.0000.04317.76
7.0.40.0100.08320.09
7.0.30.0230.04020.15
7.0.20.0200.04320.14
7.0.10.0070.04720.18
7.0.00.0070.03720.19
5.6.280.0030.07320.81
5.6.210.0100.06320.50
5.6.200.0070.07718.19
5.6.190.0030.09020.61
5.6.180.0170.08020.68
5.6.170.0330.07020.33
5.6.160.0070.06720.50
5.6.150.0170.06718.11
5.6.140.0070.08018.18
5.6.130.0030.04318.15
5.6.120.0170.04320.99
5.6.110.0100.04020.98
5.6.100.0100.06720.98
5.6.90.0170.07021.11
5.6.80.0070.08320.28
5.5.350.0230.06320.42
5.5.340.0170.07017.90
5.5.330.0070.08720.25
5.5.320.0230.05720.28
5.5.310.0300.07020.29
5.5.300.0070.05317.88
5.5.290.0200.04017.98
5.5.280.0030.09320.96
5.5.270.0330.06720.72
5.5.260.0130.07720.78
5.5.250.0130.07020.70
5.5.240.0170.03320.28
5.4.450.3570.04319.48
5.4.440.0070.08319.52
5.4.430.1600.06719.36
5.4.420.4630.03719.48
5.4.410.3800.03719.42
5.4.400.3900.03318.90
5.4.390.3970.03319.04
5.4.380.3900.04318.98
5.4.370.3770.03319.19
5.4.360.4000.03719.16
5.4.350.3770.03718.86
5.4.340.3230.03319.04
5.4.320.2870.03318.96
5.4.310.3400.03718.90
5.4.300.2230.03719.24
5.4.290.0070.03319.18
5.4.280.0000.04019.24
5.4.270.3730.03719.03
5.4.260.3900.04018.96
5.4.250.3830.03319.00
5.4.240.4030.03018.86
5.4.230.3500.03019.03
5.4.220.3770.04318.96
5.4.210.3700.03319.24
5.4.200.4000.03719.13
5.4.190.3470.03719.03
5.4.180.0130.07019.14
5.4.170.3930.03719.03
5.4.160.4030.03319.04
5.4.150.4300.03319.11
5.4.140.3800.03716.35
5.4.130.4170.03316.27
5.4.120.3870.03716.23
5.4.110.3870.03716.36
5.4.100.3800.03016.47
5.4.90.3700.03016.13
5.4.80.3970.03016.27
5.4.70.4200.03316.24
5.4.60.3900.04016.43
5.4.50.3930.03016.36
5.4.40.3670.03016.46
5.4.30.3900.03716.46
5.4.20.3970.03716.22
5.4.10.4370.03016.32
5.4.00.3670.03015.48
5.3.290.3400.03714.58
5.3.280.3900.04014.51
5.3.270.2670.04314.54
5.3.260.3670.04014.42
5.3.250.3900.03714.40
5.3.240.4270.04314.52
5.3.230.3870.04014.49
5.3.220.3630.03314.50
5.3.210.3500.04314.49
5.3.200.4230.04014.50
5.3.190.3700.03714.50
5.3.180.3870.04014.49
5.3.170.4830.03314.52
5.3.160.3830.04014.50
5.3.150.3970.03314.52
5.3.140.3670.04014.64
5.3.130.3870.04014.47
5.3.120.4070.04714.46
5.3.110.3600.04014.42
5.3.100.3970.03313.86
5.3.90.3730.03713.97
5.3.80.4270.03714.03
5.3.70.3500.02713.82
5.3.60.3600.04013.94
5.3.50.3630.03313.77
5.3.40.4230.03713.76
5.3.30.4030.03013.85
5.3.20.4230.04013.61
5.3.10.3930.03013.47
5.3.00.4100.03713.59
5.2.170.3030.03310.96
5.2.160.3230.02311.07
5.2.150.3300.02711.07
5.2.140.3100.03310.99
5.2.130.3230.03311.25
5.2.120.3300.03011.11
5.2.110.3270.03711.04
5.2.100.3430.02711.03
5.2.90.3670.03311.08
5.2.80.3570.03311.08
5.2.70.3970.03011.02
5.2.60.3900.02711.02
5.2.50.3600.02710.99
5.2.40.3330.02310.92
5.2.30.3170.03010.98
5.2.20.3270.02310.85
5.2.10.2830.03010.93
5.2.00.3130.02710.56
5.1.60.2930.0279.98
5.1.50.2570.0239.96
5.1.40.3170.02310.02
5.1.30.3230.02710.48
5.1.20.3070.02310.33
5.1.10.2700.02710.07
5.1.00.2630.02310.05
5.0.50.1100.0278.49
5.0.40.0930.0208.39
5.0.30.1570.0478.22
5.0.20.1770.0208.24
5.0.10.1830.0208.30
5.0.00.1400.0338.07
4.4.90.1700.0175.88
4.4.80.1530.0205.88
4.4.70.1770.0175.88
4.4.60.1500.0175.88
4.4.50.1470.0135.88
4.4.40.1400.0305.88
4.4.30.1470.0135.88
4.4.20.1700.0135.88
4.4.10.1470.0175.94
4.4.00.1400.0305.88
4.3.110.1270.0175.88
4.3.100.2000.0235.88
4.3.90.1730.0105.88
4.3.80.1730.0235.88
4.3.70.1500.0135.88
4.3.60.1530.0175.88
4.3.50.1730.0135.88
4.3.40.1800.0235.88
4.3.30.0900.0175.88
4.3.20.0870.0175.88
4.3.10.1000.0205.88
4.3.00.1000.0205.88

preferences:
178.84 ms | 403 KiB | 5 Q