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.60.0140.00316.50
8.3.50.0140.00521.94
8.3.40.0110.00318.67
8.3.30.0040.01119.09
8.3.20.0040.00420.29
8.3.10.0070.00023.48
8.3.00.0080.00020.90
8.2.180.0040.01116.63
8.2.170.0100.01022.96
8.2.160.0100.00320.52
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0110.00726.16
8.2.120.0040.00422.12
8.2.110.0050.00522.15
8.2.100.0070.00417.78
8.2.90.0030.00519.23
8.2.80.0000.00918.04
8.2.70.0000.00817.75
8.2.60.0000.00818.05
8.2.50.0040.00418.07
8.2.40.0000.00818.28
8.2.30.0000.00718.07
8.2.20.0040.00417.78
8.2.10.0050.00317.70
8.2.00.0000.00817.70
8.1.280.0100.01025.92
8.1.270.0040.00423.80
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.87
8.1.230.0040.00718.95
8.1.220.0050.00317.74
8.1.210.0000.00918.77
8.1.200.0030.00617.22
8.1.190.0050.00317.51
8.1.180.0050.00318.10
8.1.170.0100.00018.38
8.1.160.0060.00322.01
8.1.150.0080.00018.65
8.1.140.0040.00417.39
8.1.130.0000.00717.92
8.1.120.0040.00317.46
8.1.110.0030.00617.39
8.1.100.0000.00717.31
8.1.90.0040.00417.41
8.1.80.0040.00417.42
8.1.70.0030.00317.33
8.1.60.0030.00517.41
8.1.50.0000.00817.54
8.1.40.0050.00317.39
8.1.30.0050.00317.48
8.1.20.0050.00317.61
8.1.10.0020.00517.53
8.1.00.0080.00417.36
8.0.300.0070.00018.77
8.0.290.0000.00717.04
8.0.280.0030.00318.44
8.0.270.0000.00717.26
8.0.260.0000.00616.93
8.0.250.0070.00016.93
8.0.240.0070.00017.04
8.0.230.0000.00716.88
8.0.220.0030.00316.80
8.0.210.0000.00716.96
8.0.200.0060.00016.96
8.0.190.0000.00716.85
8.0.180.0050.00216.88
8.0.170.0000.00716.94
8.0.160.0050.00216.88
8.0.150.0000.00716.83
8.0.140.0050.00316.82
8.0.130.0030.00313.33
8.0.120.0070.00016.90
8.0.110.0080.00016.89
8.0.100.0000.00716.80
8.0.90.0000.00716.90
8.0.80.0120.00616.87
8.0.70.0070.00016.77
8.0.60.0030.00416.83
8.0.50.0030.00516.90
8.0.30.0130.00617.04
8.0.20.0130.00717.42
8.0.10.0040.00416.91
8.0.00.0130.01116.97
7.4.330.0020.00215.01
7.4.320.0000.00616.76
7.4.300.0040.00416.55
7.4.290.0030.00316.80
7.4.280.0070.00016.69
7.4.270.0070.00016.64
7.4.260.0040.00416.71
7.4.250.0030.00316.60
7.4.240.0040.00316.53
7.4.230.0030.00316.78
7.4.220.0190.00316.66
7.4.210.0070.01116.79
7.4.200.0050.00216.87
7.4.190.0050.00216.53
7.4.160.0040.01616.50
7.4.150.0090.00917.40
7.4.140.0110.01117.86
7.4.130.0090.00916.53
7.4.120.0100.00816.67
7.4.110.0090.00816.76
7.4.100.0050.01416.70
7.4.90.0080.00816.64
7.4.80.0070.01619.39
7.4.70.0170.00316.41
7.4.60.0060.01216.66
7.4.50.0060.00316.64
7.4.40.0070.00722.77
7.4.30.0070.01016.62
7.4.00.0080.00815.14
7.3.330.0000.00613.27
7.3.320.0040.00413.09
7.3.310.0050.00316.31
7.3.300.0030.00316.34
7.3.290.0050.01116.30
7.3.280.0060.01016.35
7.3.270.0160.00817.40
7.3.260.0090.00916.39
7.3.250.0080.01016.41
7.3.240.0130.00316.59
7.3.230.0040.01416.39
7.3.210.0120.00616.51
7.3.200.0040.01419.39
7.3.190.0170.00716.66
7.3.180.0030.01316.30
7.3.170.0160.00016.64
7.3.160.0100.00716.39
7.3.120.0030.01014.54
7.2.330.0110.00716.59
7.2.320.0040.01516.53
7.2.310.0150.00316.42
7.2.300.0060.01816.71
7.2.290.0030.01316.67
7.2.00.0070.01119.51
7.1.100.0610.00316.25
7.1.70.0000.00816.88
7.1.60.0180.00719.29
7.1.50.0060.01316.98
7.1.00.0030.07022.44
7.0.200.0030.00716.47
7.0.140.0030.07321.98
7.0.70.0170.06019.95
7.0.60.0030.09019.92
7.0.50.0000.05720.24
7.0.40.0000.09020.03
7.0.30.0070.04720.04
7.0.20.0200.07720.12
7.0.10.0070.08320.11
7.0.00.0070.04020.04
5.6.280.0070.07020.95
5.6.220.0070.08320.61
5.6.210.0130.06320.59
5.6.200.0000.08021.03
5.6.190.0100.08021.03
5.6.180.0130.07721.04
5.6.170.0130.07321.13
5.6.160.0030.09021.13
5.6.150.0200.07021.04
5.6.140.0130.08020.93
5.6.130.0170.07321.10
5.6.120.0130.05721.04
5.6.110.0130.05721.00
5.6.100.0030.06021.11
5.6.90.0070.09020.99
5.6.80.0030.08320.34
5.6.70.0000.09320.43
5.6.60.0130.07720.53
5.6.50.0030.05020.46
5.6.40.0070.08720.39
5.6.30.0070.04320.36
5.6.20.0070.03720.48
5.6.10.0130.07720.48
5.6.00.0030.08320.33
5.5.360.0030.05720.33
5.5.350.0100.08320.44
5.5.340.0100.05020.80
5.5.330.0100.05720.63
5.5.320.0100.05320.88
5.5.310.0100.08020.89
5.5.300.0100.07320.78
5.5.290.0070.10320.88
5.5.280.0130.07320.86
5.5.270.0100.08320.61
5.5.260.0130.08720.90
5.5.250.0070.08720.64
5.5.240.0070.05720.27
5.5.230.0100.06020.17
5.5.220.0100.08020.16
5.5.210.0070.05320.17
5.5.200.0100.07320.17
5.5.190.0070.04720.05
5.5.180.0170.04720.20
5.5.160.0070.08020.22
5.5.150.0170.07320.25
5.5.140.0070.06720.07
5.5.130.0130.08020.22
5.5.120.0070.08320.27
5.5.110.0130.07320.21
5.5.100.0030.08720.15
5.5.90.0100.07320.05
5.5.80.0000.05320.14
5.5.70.0200.07020.05
5.5.60.0100.07720.00
5.5.50.0130.06020.13
5.5.40.0000.05320.14
5.5.30.0070.03719.91
5.5.20.0000.04319.98
5.5.10.0030.04020.02
5.5.00.0070.03720.09
5.4.450.0070.08319.43
5.4.440.0070.08719.39
5.4.430.0100.06319.35
5.4.420.0030.04319.30
5.4.410.0200.06019.29
5.4.400.0130.07719.13
5.4.390.0000.05019.14
5.4.380.0100.05718.84
5.4.370.0070.04719.03
5.4.360.0070.06719.07
5.4.350.0030.04319.11
5.4.340.0000.04318.95
5.4.320.0100.04719.13
5.4.310.0130.07318.98
5.4.300.0130.04319.02
5.4.290.0170.06319.07
5.4.280.0030.08319.10
5.4.270.0070.06718.96
5.4.260.0030.07019.05
5.4.250.0070.08019.02
5.4.240.0170.07019.02
5.4.230.0130.07318.89
5.4.220.0030.04019.23
5.4.210.0100.03318.89
5.4.200.0130.03018.77
5.4.190.0030.03718.78
5.4.180.0030.04019.21
5.4.170.0100.03319.02
5.4.160.0100.06019.07
5.4.150.0000.04019.03
5.4.140.0130.02716.29
5.4.130.0030.04316.32
5.4.120.0070.05016.33
5.4.110.0030.06016.30
5.4.100.0030.04716.45
5.4.90.0070.03316.38
5.4.80.0070.03316.29
5.4.70.0030.03716.25
5.4.60.0000.03716.29
5.4.50.0070.07016.34
5.4.40.0000.05016.48
5.4.30.0000.04016.23
5.4.20.0000.04016.31
5.4.10.0130.02716.41
5.4.00.0100.03015.63
5.3.290.0070.07714.59
5.3.280.0000.04714.55
5.3.270.0000.04014.58
5.3.260.0070.03314.56
5.3.250.0000.04014.55
5.3.240.0000.04014.46
5.3.230.0000.04314.42
5.3.220.0070.03314.39
5.3.210.0070.03314.42
5.3.200.0070.07014.50
5.3.190.0030.05714.51
5.3.180.0100.03314.52
5.3.170.0000.04014.54
5.3.160.0100.03014.54
5.3.150.0030.03714.38
5.3.140.0000.04014.54
5.3.130.0000.04014.50
5.3.120.0030.04314.52
5.3.110.0000.04314.48
5.3.100.0000.07713.85
5.3.90.0000.04014.02
5.3.80.0000.04013.79
5.3.70.0070.03313.92
5.3.60.0000.04014.00
5.3.50.0000.04013.79
5.3.40.0030.06713.93
5.3.30.0030.03713.89
5.3.20.0030.03713.54
5.3.10.0000.05313.56
5.3.00.0030.04313.48
5.2.170.0000.03311.38
5.2.160.0000.03011.38
5.2.150.0000.05711.38
5.2.140.0030.04011.38
5.2.130.0070.02711.38
5.2.120.0030.03311.38
5.2.110.0070.05011.38
5.2.100.0000.03711.38
5.2.90.0100.02011.38
5.2.80.0030.03011.38
5.2.70.0070.03711.38
5.2.60.0000.03011.38
5.2.50.0000.03011.38
5.2.40.0070.06011.38
5.2.30.0000.03011.38
5.2.20.0030.02711.38
5.2.10.0000.03011.38
5.2.00.0000.03011.38
5.1.60.0030.02311.38
5.1.50.0030.02311.38
5.1.40.0070.02011.38
5.1.30.0030.02011.38
5.1.20.0000.02711.38
5.1.10.0070.05711.38
5.1.00.0000.03711.38
5.0.50.0070.04011.38
5.0.40.0070.04311.38
5.0.30.0070.06011.38
5.0.20.0030.04011.38
5.0.10.0100.03311.38
5.0.00.0030.06311.38
4.4.90.0000.01711.38
4.4.80.0000.01711.38
4.4.70.0030.03311.38
4.4.60.0000.02711.38
4.4.50.0030.01711.38
4.4.40.0000.02711.38
4.4.30.0030.01311.38
4.4.20.0030.01311.38
4.4.10.0070.03311.38
4.4.00.0030.05311.38
4.3.110.0070.02311.38
4.3.100.0030.03311.38
4.3.90.0070.02711.38
4.3.80.0030.05311.38
4.3.70.0070.02311.38
4.3.60.0070.03311.38
4.3.50.0000.04011.38
4.3.40.0070.05011.38
4.3.30.0030.03311.38
4.3.20.0000.03711.38
4.3.10.0070.03011.38
4.3.00.0000.03711.38

preferences:
41.55 ms | 401 KiB | 5 Q