3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'foo bar baz, fóó bąr bąź "foobar" $©L±˝'; $text = preg_replace("/[^\pL\s]++/u", ' ', $text); echo $text;

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.0150.00618.33
8.3.50.0100.01122.11
8.3.40.0040.01118.91
8.3.30.0110.00718.79
8.3.20.0040.00418.85
8.3.10.0040.00421.22
8.3.00.0040.00423.57
8.2.180.0090.00617.00
8.2.170.0040.01122.96
8.2.160.0100.00320.56
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0030.00526.16
8.2.120.0040.00421.03
8.2.110.0030.00622.37
8.2.100.0040.00717.97
8.2.90.0080.00018.03
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0050.00318.22
8.2.30.0040.00421.30
8.2.20.0030.00517.96
8.2.10.0040.00417.95
8.2.00.0060.00618.09
8.1.280.0110.01125.92
8.1.270.0040.00423.99
8.1.260.0080.01126.35
8.1.250.0000.00728.09
8.1.240.0040.00422.14
8.1.230.0090.00417.61
8.1.220.0030.00617.79
8.1.210.0030.00519.03
8.1.200.0000.00917.35
8.1.190.0040.00417.41
8.1.180.0040.00418.10
8.1.170.0030.00618.66
8.1.160.0000.00718.88
8.1.150.0000.00718.74
8.1.140.0040.00417.54
8.1.130.0060.00317.87
8.1.120.0050.00317.59
8.1.110.0000.00717.58
8.1.100.0000.00817.58
8.1.90.0000.00817.58
8.1.80.0030.00317.47
8.1.70.0040.00417.53
8.1.60.0030.00617.60
8.1.50.0050.00317.58
8.1.40.0040.00417.51
8.1.30.0030.00517.71
8.1.20.0050.00317.66
8.1.10.0000.00817.56
8.1.00.0070.00017.61
8.0.300.0070.00020.05
8.0.290.0000.00817.18
8.0.280.0030.00318.47
8.0.270.0030.00317.28
8.0.260.0050.00316.94
8.0.250.0060.00317.24
8.0.240.0000.00917.05
8.0.230.0040.00417.12
8.0.220.0000.01017.15
8.0.210.0050.00316.97
8.0.200.0100.00017.09
8.0.190.0000.00817.21
8.0.180.0030.00517.14
8.0.170.0050.00217.13
8.0.160.0050.00217.04
8.0.150.0000.00816.94
8.0.140.0050.00316.82
8.0.130.0060.00013.45
8.0.120.0000.00817.15
8.0.110.0040.00417.11
8.0.100.0030.00517.12
8.0.90.0040.00416.95
8.0.80.0060.01017.02
8.0.70.0050.00216.93
8.0.60.0040.00417.01
8.0.50.0000.00717.02
8.0.30.0110.00817.32
8.0.20.0090.01217.40
8.0.10.0000.00717.04
8.0.00.0120.01116.90
7.4.330.0020.00216.76
7.4.320.0030.00316.71
7.4.300.0000.00616.63
7.4.290.0040.00416.81
7.4.280.0000.00716.80
7.4.270.0000.00716.67
7.4.260.0030.00313.49
7.4.250.0070.00016.63
7.4.240.0030.00516.73
7.4.230.0050.00216.61
7.4.220.0080.01216.65
7.4.210.0060.00816.71
7.4.200.0040.00416.62
7.4.190.0030.00316.88
7.4.160.0080.00816.70
7.4.150.0090.00917.40
7.4.140.0150.00617.86
7.4.130.0120.00716.58
7.4.120.0100.00616.59
7.4.110.0000.01716.81
7.4.100.0090.01216.71
7.4.90.0110.01116.80
7.4.80.0100.00619.39
7.4.70.0100.01016.71
7.4.60.0150.00616.71
7.4.50.0040.00416.69
7.4.40.0030.01022.77
7.4.30.0130.00916.79
7.4.00.0140.00315.13
7.3.330.0070.00013.39
7.3.320.0030.00313.20
7.3.310.0070.00016.35
7.3.300.0030.00316.37
7.3.290.0000.01516.46
7.3.280.0060.01316.44
7.3.270.0120.00617.40
7.3.260.0150.00818.24
7.3.250.0100.01016.60
7.3.240.0030.01416.58
7.3.230.0070.01416.44
7.3.210.0060.01016.48
7.3.200.0140.00819.39
7.3.190.0130.00716.44
7.3.180.0170.00016.79
7.3.170.0030.01316.75
7.3.160.0140.00316.45
7.3.120.0000.01714.72
7.2.330.0130.00316.85
7.2.320.0050.01516.66
7.2.310.0150.00716.72
7.2.300.0060.01116.82
7.2.290.0140.00316.85
7.2.60.0070.01416.69
7.2.50.0000.01216.91
7.1.200.0080.00815.72
7.1.70.0000.00717.50
7.1.60.0040.00817.42
7.1.50.0100.01016.81
7.1.00.0030.05722.45
7.0.200.0000.01116.91
7.0.140.0100.06721.95
7.0.60.0070.05319.92
7.0.50.0070.05717.81
7.0.40.0130.05020.00
7.0.30.0200.04720.14
7.0.20.0270.04320.01
7.0.10.0070.09020.22
7.0.00.0070.09020.19
5.6.280.0070.07021.11
5.6.210.0030.04020.72
5.6.200.0130.08018.22
5.6.190.0070.07020.41
5.6.180.0330.04720.35
5.6.170.0070.05020.54
5.6.160.0130.06020.62
5.6.150.0130.07718.16
5.6.140.0000.07718.16
5.6.130.0100.06018.23
5.6.120.0070.06321.04
5.6.110.0030.08021.13
5.6.100.0130.08321.11
5.6.90.0070.08720.99
5.6.80.0070.06020.36
5.5.350.0170.05020.39
5.5.340.0000.08717.98
5.5.330.0030.04020.43
5.5.320.0100.06020.50
5.5.310.0200.04020.07
5.5.300.0030.04717.91
5.5.290.0100.07717.98
5.5.280.0030.07020.96
5.5.270.0000.05020.78
5.5.260.0070.04320.79
5.5.250.0030.04020.67
5.5.240.0070.07720.15
5.4.450.3570.03319.14
5.4.440.3230.03719.25
5.4.430.3730.03719.41
5.4.420.4100.03719.25
5.4.410.4200.04019.29
5.4.400.3600.03318.93
5.4.390.3500.04019.06
5.4.380.3270.03719.14
5.4.370.3570.03319.06
5.4.360.3200.04318.79
5.4.350.3700.05019.13
5.4.340.3200.04319.13
5.4.320.3570.03719.23
5.4.310.3570.03718.80
5.4.300.4200.03718.77
5.4.290.5300.04319.25
5.4.280.2900.04018.80
5.4.270.3330.03318.89
5.4.260.3170.03719.08
5.4.250.3030.03319.08
5.4.240.3830.04318.91
5.4.230.2830.03718.91
5.4.220.2900.03319.09
5.4.210.3730.04318.88
5.4.200.3470.04019.05
5.4.190.4230.03719.11
5.4.180.3330.03718.79
5.4.170.3600.03718.87
5.4.160.3530.04019.22
5.4.150.4430.03718.86
5.4.140.3230.03716.55
5.4.130.3600.05016.28
5.4.120.3800.03016.49
5.4.110.3530.03716.47
5.4.100.3530.05016.41
5.4.90.3570.03716.47
5.4.80.3330.03716.21
5.4.70.3370.03316.44
5.4.60.3670.02316.43
5.4.50.3500.04716.27
5.4.40.3300.03316.40
5.4.30.3700.03716.43
5.4.20.3300.03716.32
5.4.10.3430.02716.38
5.4.00.3530.03315.78
5.3.290.3330.03314.71
5.3.280.2700.04014.44
5.3.270.3630.04014.55
5.3.260.3530.04314.55
5.3.250.3570.03314.65
5.3.240.3470.04014.47
5.3.230.3570.03714.50
5.3.220.3530.04014.50
5.3.210.3470.03314.41
5.3.200.4330.03314.44
5.3.190.3270.04014.42
5.3.180.3000.03314.51
5.3.170.3230.03714.41
5.3.160.3370.03714.39
5.3.150.3570.04014.41
5.3.140.3270.04014.50
5.3.130.3400.03714.46
5.3.120.3430.03714.40
5.3.110.3270.03714.59
5.3.100.3500.04013.89
5.3.90.3800.04014.00
5.3.80.3900.03713.92
5.3.70.4270.03713.87
5.3.60.4130.04013.88
5.3.50.3730.03313.87
5.3.40.3970.04013.87
5.3.30.3700.03313.84
5.3.20.3470.03313.73
5.3.10.4030.03713.59
5.3.00.3870.03713.72
5.2.170.3230.03011.07
5.2.160.3000.03311.08
5.2.150.3570.02711.19
5.2.140.3030.03310.98
5.2.130.3400.02710.94
5.2.120.3300.03710.93
5.2.110.3500.02310.95
5.2.100.3600.02711.14
5.2.90.3230.03311.19
5.2.80.3170.03311.03
5.2.70.3230.02711.14
5.2.60.3530.02311.06
5.2.50.3230.03010.85
5.2.40.2930.02711.05
5.2.30.2830.03011.02
5.2.20.2270.03010.87
5.2.10.2600.02710.76
5.2.00.2400.02710.61
5.1.60.2370.0239.91
5.1.50.2430.02710.14
5.1.40.3000.01710.05
5.1.30.2470.02710.23
5.1.20.2200.03010.20
5.1.10.2430.02710.18
5.1.00.2430.02010.22
5.0.50.1070.0238.66
5.0.40.1330.0238.28
5.0.30.1530.0278.21
5.0.20.1630.0208.34
5.0.10.1000.0208.14
5.0.00.1500.0378.08
4.4.90.1800.0137.08
4.4.80.1600.0177.08
4.4.70.1230.0207.08
4.4.60.1270.0237.08
4.4.50.1430.0207.08
4.4.40.1300.0237.08
4.4.30.1130.0137.08
4.4.20.1470.0177.08
4.4.10.1370.0237.08
4.4.00.1330.0307.08
4.3.110.1470.0177.08
4.3.100.1670.0137.08
4.3.90.1330.0137.08
4.3.80.1500.0307.08
4.3.70.1430.0177.08
4.3.60.1700.0107.08
4.3.50.1100.0177.08
4.3.40.1100.0207.08
4.3.30.0600.0207.08
4.3.20.0730.0207.08
4.3.10.0770.0207.08
4.3.00.0770.0177.08

preferences:
44.69 ms | 401 KiB | 5 Q