3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = "°Freen\x18 ew°\x90ɮ\xc2\xa0"; $result = preg_replace('~[\x{0000}-\x{001F}\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.60.0120.00316.50
8.3.50.0100.00916.65
8.3.40.0090.00618.92
8.3.30.0120.00618.82
8.3.20.0000.00818.95
8.3.10.0050.00318.66
8.3.00.0070.00319.38
8.2.180.0110.00716.50
8.2.170.0100.00722.96
8.2.160.0110.00719.00
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0050.00321.04
8.2.110.0030.00622.43
8.2.100.0070.00317.84
8.2.90.0000.00817.88
8.2.80.0090.00018.95
8.2.70.0040.00717.63
8.2.60.0030.00518.04
8.2.50.0050.00318.03
8.2.40.0000.00819.48
8.2.30.0060.00317.90
8.2.20.0090.00017.83
8.2.10.0040.00417.89
8.2.00.0040.00417.84
8.1.280.0090.00625.92
8.1.270.0030.00823.99
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0040.00718.77
8.1.230.0110.00020.87
8.1.220.0100.00017.74
8.1.210.0040.00418.77
8.1.200.0050.00317.23
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0040.00417.62
8.1.160.0040.00418.95
8.1.150.0040.00418.74
8.1.140.0040.00417.50
8.1.130.0040.00417.54
8.1.120.0000.01017.45
8.1.110.0050.00217.49
8.1.100.0040.00417.47
8.1.90.0030.00417.57
8.1.80.0040.00417.45
8.1.70.0070.00017.47
8.1.60.0000.00717.55
8.1.50.0000.00717.54
8.1.40.0030.00617.63
8.1.30.0000.00817.70
8.1.20.0000.00817.75
8.1.10.0000.00717.69
8.1.00.0060.00317.57
8.0.300.0050.00318.77
8.0.290.0040.00416.88
8.0.280.0070.00018.50
8.0.270.0070.00017.29
8.0.260.0030.00316.88
8.0.250.0040.00417.13
8.0.240.0030.00317.01
8.0.230.0050.00316.96
8.0.220.0050.00216.96
8.0.210.0020.00516.94
8.0.200.0030.00316.90
8.0.190.0000.00717.04
8.0.180.0000.00717.01
8.0.170.0030.00716.93
8.0.160.0070.00016.86
8.0.150.0100.00016.89
8.0.140.0040.00416.91
8.0.130.0000.00513.32
8.0.120.0100.00016.98
8.0.110.0000.00817.00
8.0.100.0040.00417.07
8.0.90.0000.00816.92
8.0.80.0030.01216.91
8.0.70.0040.00416.96
8.0.60.0080.00016.82
8.0.50.0080.00017.04
8.0.30.0100.00716.85
8.0.20.0120.00817.24
8.0.10.0000.00716.91
8.0.00.0170.00116.92
7.4.330.0060.00013.19
7.4.320.0040.00416.64
7.4.300.0000.00616.72
7.4.290.0070.00016.55
7.4.280.0030.00616.76
7.4.270.0000.00716.74
7.4.260.0050.00013.43
7.4.250.0000.00816.66
7.4.240.0050.00216.70
7.4.230.0040.00416.54
7.4.220.0080.01116.76
7.4.210.0030.01616.73
7.4.200.0030.00316.75
7.4.190.0050.00316.76
7.4.160.0060.00916.57
7.4.150.0120.00616.70
7.4.140.0160.00717.86
7.4.130.0060.01316.68
7.4.120.0120.00616.63
7.4.110.0130.00616.47
7.4.100.0040.01316.77
7.4.90.0090.00916.61
7.4.80.0120.00619.39
7.4.70.0120.00416.54
7.4.60.0090.00616.60
7.4.50.0040.00416.41
7.4.40.0130.00316.55
7.4.30.0090.01216.51
7.4.00.0090.00915.11
7.3.330.0000.00613.10
7.3.320.0060.00013.09
7.3.310.0030.00316.19
7.3.300.0030.00516.25
7.3.290.0080.00916.38
7.3.280.0130.00316.30
7.3.270.0070.01016.57
7.3.260.0100.00616.74
7.3.240.0060.01016.61
7.3.230.0110.00516.65
7.3.210.0100.00716.48
7.3.200.0030.01416.46
7.3.190.0070.01016.46
7.3.180.0060.00916.45
7.3.170.0040.01816.79
7.3.160.0090.00616.55
7.3.120.0080.00914.84
7.3.110.0070.01015.10
7.3.100.0080.00715.00
7.3.90.0050.00914.86
7.3.80.0050.00714.92
7.3.70.0050.00714.81
7.3.60.0050.01015.00
7.3.50.0090.00514.92
7.3.40.0050.00914.88
7.3.30.0050.00914.78
7.3.20.0050.00616.78
7.3.10.0080.00616.68
7.3.00.0050.00916.78
7.2.330.0070.01116.72
7.2.320.0030.01316.66
7.2.310.0070.01016.70
7.2.300.0080.00816.81
7.2.290.0130.00316.70
7.2.250.0070.01214.95
7.2.240.0060.01115.10
7.2.230.0070.00815.17
7.2.220.0040.00815.15
7.2.210.0070.00815.13
7.2.200.0020.01015.05
7.2.190.0060.01015.07
7.2.180.0050.00814.96
7.2.170.0050.00815.06
7.2.130.0000.00916.89
7.2.120.0040.01117.13
7.2.110.0030.00616.98
7.2.100.0070.00317.05
7.2.90.0000.01116.92
7.2.80.0040.01117.04
7.2.70.0060.00916.70
7.2.60.0100.00717.14
7.2.50.0120.00016.99
7.2.40.0070.00717.22
7.2.30.0030.00616.81
7.2.20.0000.01217.14
7.2.10.0070.00317.01
7.2.00.0020.01118.30
7.1.330.0060.00816.05
7.1.320.0030.00915.88
7.1.310.0050.01015.90
7.1.300.0040.00715.83
7.1.290.0030.00815.93
7.1.280.0070.00715.76
7.1.270.0050.00615.95
7.1.260.0070.00515.80
7.1.250.0060.00315.93
7.1.100.0040.01118.46
7.1.70.0000.01617.32
7.1.60.0060.01919.25
7.1.50.0070.00717.23
7.1.00.0000.05022.34
7.0.200.0070.00016.88
7.0.140.0030.07721.96
7.0.120.0030.06322.02
7.0.60.0070.05720.06
7.0.50.0130.07717.82
7.0.40.0270.03320.23
7.0.30.0600.06320.22
7.0.20.0270.05720.01
7.0.10.0100.07320.01
7.0.00.0070.04720.02
5.6.280.0070.07021.11
5.6.210.0100.05720.69
5.6.200.0000.08718.08
5.6.190.0070.05320.27
5.6.180.3270.04020.48
5.6.170.0230.08020.45
5.6.160.0000.04320.49
5.6.150.0100.08018.11
5.6.140.0070.03718.09
5.6.130.0030.04718.11
5.6.120.0200.06320.99
5.6.110.0100.08021.04
5.6.100.0070.07320.99
5.6.90.0170.07021.07
5.6.80.0170.07020.41
5.6.70.3600.04320.34
5.5.350.0230.08320.51
5.5.340.0030.08317.96
5.5.330.0070.06720.37
5.5.320.0330.04020.21
5.5.310.0370.06020.21
5.5.300.0130.06317.91
5.5.290.0030.08317.92
5.5.280.0100.05320.87
5.5.270.0030.08720.84
5.5.260.0170.07720.86
5.5.250.0100.07020.60
5.5.240.0230.07720.14
5.4.450.0370.04319.43
5.4.440.0530.04019.54
5.4.430.0900.03019.42
5.4.420.0670.05319.25
5.4.410.0300.04319.26
5.4.400.0730.03018.80
5.4.390.0770.04019.05
5.4.380.0670.04718.79
5.4.370.0200.04319.13
5.4.360.0930.04319.05
5.4.350.0530.04019.13
5.4.340.0470.03318.77
5.4.320.0770.03319.13
5.4.310.0300.04719.13
5.4.300.0600.04319.05
5.4.290.0330.03719.15
5.4.280.0300.04718.89
5.4.270.0600.05019.21
5.4.260.0770.05319.21
5.4.250.0570.05018.76
5.4.240.0470.04019.03
5.4.230.0600.03719.21
5.4.220.0830.04019.13
5.4.210.0700.04319.09
5.4.200.0670.03019.15
5.4.190.0470.05719.21
5.4.180.0230.04021.80
5.4.170.0900.02721.80
5.4.160.0930.02721.80
5.4.150.0530.04321.80
5.4.140.0470.03021.80
5.4.130.0630.02721.80
5.4.120.0430.04021.80
5.4.110.0330.03021.80
5.4.100.0730.03021.80
5.4.90.0200.02721.80
5.4.80.0870.03021.80
5.4.70.0800.03021.80
5.4.60.0400.04321.80
5.4.50.0300.04021.80
5.4.40.0500.04321.80
5.4.30.0670.04721.80
5.4.20.0800.02721.80
5.4.10.0570.04021.80
5.4.00.0700.05021.80
5.3.290.0470.03316.17
5.3.280.0770.03316.17
5.3.270.0800.05721.80
5.3.260.0530.05021.80
5.3.250.0500.06021.80
5.3.240.0500.03721.80
5.3.230.0330.04021.80
5.3.220.0270.03721.80
5.3.210.0400.04321.80
5.3.200.0330.03321.80
5.3.190.0030.04321.80
5.3.180.0870.04721.80
5.3.170.0770.04021.80
5.3.160.0570.03721.80
5.3.150.0670.05721.80
5.3.140.0670.03321.80
5.3.130.0530.04721.80
5.3.120.0600.04721.80
5.3.110.0800.04021.80
5.3.100.0800.03021.80
5.3.90.0470.05321.80
5.3.80.0200.04721.80
5.3.70.0570.04321.80
5.3.60.0630.03321.80
5.3.50.0730.03321.80
5.3.40.0570.03321.80
5.3.30.0370.04021.80
5.3.20.0530.03021.80
5.3.10.0930.03321.80
5.3.00.0570.03321.80
5.2.170.0430.03721.80
5.2.160.0430.03021.80
5.2.150.0700.02721.80
5.2.140.0200.03321.80
5.2.130.0900.01321.80
5.2.120.0530.03321.80
5.2.110.0370.03321.80
5.2.100.0570.02321.80
5.2.90.0930.02021.80
5.2.80.0800.02721.80
5.2.70.0770.03021.80
5.2.60.0270.02721.80
5.2.50.0500.03021.80
5.2.40.0270.04021.80
5.2.30.0400.03721.80
5.2.20.0630.01721.80
5.2.10.0530.02321.80
5.2.00.0400.03321.80
5.1.60.0500.01721.80
5.1.50.0330.01321.80
5.1.40.0500.02721.80
5.1.30.0430.03021.80
5.1.20.0430.02321.80
5.1.10.0300.03021.80
5.1.00.0470.02321.80
5.0.50.0130.02721.80
5.0.40.0300.01321.80
5.0.30.0030.02321.80
5.0.20.0030.02021.80
5.0.10.0200.01721.80
5.0.00.0330.02321.80
4.4.90.0400.01321.80
4.4.80.0070.02021.80
4.4.70.0100.01721.80
4.4.60.0230.01021.80
4.4.50.0200.01321.80
4.4.40.0000.02021.80
4.4.30.0300.01321.80
4.4.20.0130.01721.80
4.4.10.0270.01721.80
4.4.00.0070.03021.80
4.3.110.0270.01321.80
4.3.100.0070.01321.80
4.3.90.0030.02021.80
4.3.80.0130.03021.80
4.3.70.0100.03021.80
4.3.60.0270.01721.80
4.3.50.0170.01721.80
4.3.40.0370.02321.80
4.3.30.0130.01321.80
4.3.20.0130.01321.80
4.3.10.0170.01021.80
4.3.00.0000.02021.80

preferences:
56.46 ms | 401 KiB | 5 Q