3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'love@outerbanks.org  '; $out = preg_replace('/^\x{c2a0}*(.*)\x{c2a0}*$/u', ' ', $string); var_dump($out);

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.0070.01116.75
8.3.50.0290.00422.90
8.3.40.0110.00418.70
8.3.30.0080.00618.92
8.3.20.0040.00420.24
8.3.10.0040.00421.90
8.3.00.0030.00617.50
8.2.180.0030.01416.88
8.2.170.0190.00422.96
8.2.160.0000.01420.45
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.04
8.2.110.0000.00919.30
8.2.100.0090.00318.03
8.2.90.0000.00819.00
8.2.80.0030.00517.97
8.2.70.0030.00717.63
8.2.60.0000.00817.92
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0000.00717.89
8.2.20.0080.00017.93
8.2.10.0070.00018.03
8.2.00.0040.00417.85
8.1.280.0180.00025.92
8.1.270.0090.00023.91
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00022.27
8.1.230.0040.00720.97
8.1.220.0000.00818.77
8.1.210.0050.00518.77
8.1.200.0030.00617.22
8.1.190.0030.00517.35
8.1.180.0050.00319.13
8.1.170.0000.00918.61
8.1.160.0000.00721.91
8.1.150.0040.00418.79
8.1.140.0040.00417.46
8.1.130.0030.00317.79
8.1.120.0000.00817.48
8.1.110.0030.00617.43
8.1.100.0030.00317.44
8.1.90.0040.00417.58
8.1.80.0000.00817.45
8.1.70.0000.00717.52
8.1.60.0030.00617.53
8.1.50.0030.00617.54
8.1.40.0000.00817.64
8.1.30.0050.00317.61
8.1.20.0060.00317.80
8.1.10.0040.00417.48
8.1.00.0000.00717.55
8.0.300.0030.00519.97
8.0.290.0040.00416.75
8.0.280.0000.00818.32
8.0.270.0070.00017.27
8.0.260.0030.00317.28
8.0.250.0060.00017.07
8.0.240.0000.00616.99
8.0.230.0100.00017.04
8.0.220.0000.00716.94
8.0.210.0060.00017.05
8.0.200.0030.00517.06
8.0.190.0000.00716.95
8.0.180.0040.00417.05
8.0.170.0000.00817.06
8.0.160.0000.00716.91
8.0.150.0000.01216.98
8.0.140.0030.00516.99
8.0.130.0060.00013.39
8.0.120.0000.00817.00
8.0.110.0040.00417.03
8.0.100.0040.00416.91
8.0.90.0040.00416.83
8.0.80.0060.01017.01
8.0.70.0040.00416.99
8.0.60.0040.00416.84
8.0.50.0080.00017.06
8.0.30.0130.00617.17
8.0.20.0110.00817.40
8.0.10.0070.00017.08
8.0.00.0140.00316.87
7.4.330.0050.00015.16
7.4.320.0000.00616.70
7.4.300.0040.00416.75
7.4.290.0070.00016.64
7.4.280.0000.00816.68
7.4.270.0050.00316.70
7.4.260.0000.00716.66
7.4.250.0030.00316.54
7.4.240.0020.00516.69
7.4.230.0000.00716.75
7.4.220.0060.01216.77
7.4.210.0120.00316.68
7.4.200.0080.00016.84
7.4.160.0120.00816.59
7.4.150.0120.00617.40
7.4.140.0080.00917.86
7.4.130.0090.00916.53
7.4.120.0120.00716.67
7.4.110.0090.00916.57
7.4.100.0110.00716.90
7.4.90.0140.00316.50
7.4.80.0190.00319.39
7.4.70.0150.00416.47
7.4.60.0060.01316.68
7.4.50.0040.00016.25
7.4.40.0130.00916.65
7.4.30.0060.00916.61
7.4.00.0080.00715.08
7.3.330.0050.00013.25
7.3.320.0000.00513.21
7.3.310.0000.00716.54
7.3.300.0000.00716.29
7.3.290.0070.00716.32
7.3.280.0060.01416.29
7.3.270.0030.01417.40
7.3.260.0150.00916.57
7.3.250.0100.01016.59
7.3.240.0050.01116.64
7.3.230.0100.00716.39
7.3.210.0090.00916.57
7.3.200.0090.00619.39
7.3.190.0030.01316.25
7.3.180.0130.00616.45
7.3.170.0030.01216.33
7.3.160.0090.00916.44
7.3.120.0050.01015.08
7.3.110.0080.00814.82
7.3.100.0040.00914.99
7.3.90.0060.01214.63
7.3.80.0070.00714.82
7.3.70.0020.01114.83
7.3.60.0070.00614.81
7.3.50.0050.00914.89
7.3.40.0030.01014.91
7.3.30.0040.00914.76
7.3.20.0020.01216.81
7.3.10.0040.01116.74
7.3.00.0100.00716.60
7.2.330.0060.01216.74
7.2.320.0040.01416.58
7.2.310.0130.00616.56
7.2.300.0100.00716.66
7.2.290.0100.00616.61
7.2.250.0020.01715.15
7.2.240.0130.00515.03
7.2.230.0100.00715.11
7.2.220.0060.01114.93
7.2.210.0020.01415.12
7.2.200.0050.01115.22
7.2.190.0030.01115.14
7.2.180.0060.00915.09
7.2.170.0050.00615.17
7.1.330.0100.00615.75
7.1.320.0030.01215.88
7.1.310.0050.01015.84
7.1.300.0090.00515.79
7.1.290.0050.00715.80
7.1.280.0070.00315.83
7.1.270.0040.01115.81
7.1.260.0070.00715.83
7.1.70.0040.01217.19
7.1.60.0140.01019.40
7.1.50.0070.01516.84
7.1.00.0030.07722.50
7.0.200.0030.00516.65
7.0.140.0030.07322.03
7.0.60.0030.05721.71
7.0.50.0170.04017.82
7.0.40.0130.08020.25
7.0.30.0330.05720.14
7.0.20.0170.04020.20
7.0.10.0100.05320.20
7.0.00.0070.08720.18
5.6.280.0000.07720.96
5.6.210.0130.06020.72
5.6.200.0070.08018.22
5.6.190.0130.08020.35
5.6.180.0200.04320.67
5.6.170.0300.05720.50
5.6.160.0100.04320.33
5.6.150.0030.06318.15
5.6.140.0100.07718.07
5.6.130.0130.04718.17
5.6.120.0100.08021.00
5.6.110.0070.08321.02
5.6.100.0100.05320.88
5.6.90.0170.07020.95
5.6.80.0130.08320.35
5.5.350.0270.08020.32
5.5.340.0030.08717.89
5.5.330.0100.04320.41
5.5.320.0270.07320.34
5.5.310.0170.04720.17
5.5.300.0030.08318.00
5.5.290.0030.07718.01
5.5.280.0130.08020.68
5.5.270.0130.06320.96
5.5.260.0100.06720.96
5.5.250.0170.05320.69
5.5.240.0100.07020.26
5.4.450.4070.04019.50
5.4.440.3870.03719.21
5.4.430.0070.08019.48
5.4.420.1170.06719.46
5.4.410.4430.04319.20
5.4.400.3770.04019.05
5.4.390.3770.03319.07
5.4.380.3730.03719.16
5.4.370.3930.03319.08
5.4.360.4430.04019.16
5.4.350.3700.03318.93
5.4.340.3700.04019.00
5.4.320.3670.03319.11
5.4.310.3130.03319.04
5.4.300.3700.04719.08
5.4.290.2900.04018.96
5.4.280.4170.05019.16
5.4.270.4000.03319.05
5.4.260.4170.04019.20
5.4.250.3830.03019.12
5.4.240.3670.03718.97
5.4.230.3970.03319.16
5.4.220.3930.03718.86
5.4.210.3800.04319.20
5.4.200.3630.03319.15
5.4.190.3570.03718.98
5.4.180.3800.04019.07
5.4.170.4200.04019.03
5.4.160.4470.04719.06
5.4.150.4100.03719.14
5.4.140.4130.04016.23
5.4.130.3670.03016.39
5.4.120.3570.04016.21
5.4.110.3630.03716.16
5.4.100.3870.03716.46
5.4.90.3930.03016.50
5.4.80.3630.04016.11
5.4.70.3530.03716.55
5.4.60.3870.04016.13
5.4.50.4200.04016.23
5.4.40.3670.03716.36
5.4.30.3930.03716.31
5.4.20.4030.03716.46
5.4.10.3670.04016.10
5.4.00.3870.03315.67
5.3.290.3670.03714.59
5.3.280.3830.04314.52
5.3.270.4500.03314.53
5.3.260.4270.04014.42
5.3.250.4130.04314.50
5.3.240.3970.03314.61
5.3.230.3800.03714.51
5.3.220.3970.04014.46
5.3.210.3770.03714.51
5.3.200.4270.04314.44
5.3.190.3830.04014.55
5.3.180.3670.05014.43
5.3.170.3870.03714.57
5.3.160.3770.04014.64
5.3.150.3830.02714.35
5.3.140.3800.03314.50
5.3.130.3770.03014.48
5.3.120.3770.04014.47
5.3.110.3770.03314.49
5.3.100.3630.03013.97
5.3.90.3830.03713.94
5.3.80.3500.04313.95
5.3.70.3770.04713.99
5.3.60.4230.03313.84
5.3.50.3800.04313.91
5.3.40.3870.04013.89
5.3.30.3970.02713.86
5.3.20.3700.04013.70
5.3.10.3930.03013.61
5.3.00.4500.03013.57
5.2.170.3000.03311.00
5.2.160.3070.03311.08
5.2.150.3230.03011.22
5.2.140.3370.02711.07
5.2.130.3270.03011.04
5.2.120.3270.03311.09
5.2.110.2970.02711.06
5.2.100.3430.02711.25
5.2.90.3830.02710.95
5.2.80.0030.06010.94
5.2.70.0070.06711.24
5.2.60.0070.04010.98
5.2.50.2330.03710.99
5.2.40.2670.03010.96
5.2.30.2670.03010.84
5.2.20.2600.03310.93
5.2.10.2630.03310.73
5.2.00.2970.02310.59
5.1.60.2500.0239.89
5.1.50.2770.03010.14
5.1.40.2900.0239.97
5.1.30.2600.02710.48
5.1.20.2730.03010.23
5.1.10.2430.03010.08
5.1.00.2400.02710.12
5.0.50.0900.0278.62
5.0.40.1670.0208.38
5.0.30.1400.0378.22
5.0.20.1630.0138.24
5.0.10.1470.0238.20
5.0.00.1230.0308.12
4.4.90.0070.0277.02
4.4.80.0030.0307.02
4.4.70.1230.0177.02
4.4.60.1400.0107.02
4.4.50.1570.0177.02
4.4.40.1470.0337.02
4.4.30.1430.0207.02
4.4.20.1600.0137.02
4.4.10.1230.0207.02
4.4.00.1030.0507.02
4.3.110.1400.0177.02
4.3.100.1500.0137.02
4.3.90.1600.0177.02
4.3.80.1570.0237.02
4.3.70.1470.0177.02
4.3.60.1170.0177.02
4.3.50.0930.0207.02
4.3.40.0030.0277.02
4.3.30.0030.0337.02
4.3.20.0000.0237.02
4.3.10.0000.0377.02
4.3.00.0030.0137.02

preferences:
36.98 ms | 401 KiB | 5 Q