3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'A lead was space" ema il "@emailadds.com saved for sharon.davis@website.com, Date: 11th December 2019, Service: Car Hire ( Premium ), Extras: NA, Price: £300'; echo preg_replace('/(?:[^"\s@]+|"[^"]*")+(?=@[^\s.]+\.)/', '******', $string);

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.110.0030.01620.94
8.3.100.0050.00524.06
8.3.90.0060.00326.77
8.3.80.0080.00416.75
8.3.70.0070.00718.42
8.3.60.0100.01018.23
8.3.50.0070.01123.68
8.3.40.0090.00918.97
8.3.30.0070.00718.79
8.3.20.0080.00024.18
8.3.10.0030.00724.66
8.3.00.0000.00926.16
8.2.230.0090.00022.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0000.01216.75
8.2.190.0160.00718.41
8.2.180.0120.00325.92
8.2.170.0120.00318.91
8.2.160.0140.00322.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00019.56
8.2.110.0060.00320.47
8.2.100.0000.01217.80
8.2.90.0050.00517.75
8.2.80.0050.00318.95
8.2.70.0030.00617.92
8.2.60.0070.00318.22
8.2.50.0030.00518.10
8.2.40.0040.00421.00
8.2.30.0040.00419.33
8.2.20.0040.00418.10
8.2.10.0050.00319.27
8.2.00.0020.00519.12
8.1.290.0060.00330.84
8.1.280.0140.00325.92
8.1.270.0030.00622.05
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0100.00023.73
8.1.230.0040.00822.55
8.1.220.0080.00017.76
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0040.00417.35
8.1.180.0000.00918.10
8.1.170.0040.00418.61
8.1.160.0000.00719.11
8.1.150.0080.00018.76
8.1.140.0000.01018.86
8.1.130.0000.00720.02
8.1.120.0000.00817.49
8.1.110.0030.00617.48
8.1.100.0000.00717.56
8.1.90.0000.00717.56
8.1.80.0060.00317.62
8.1.70.0070.00017.53
8.1.60.0060.00317.53
8.1.50.0000.00917.65
8.1.40.0090.00017.66
8.1.30.0000.00817.75
8.1.20.0030.00517.70
8.1.10.0030.00917.63
8.1.00.0050.00317.58
8.0.300.0050.00318.77
8.0.290.0080.00016.88
8.0.280.0000.00718.47
8.0.270.0070.00016.93
8.0.260.0040.00418.64
8.0.250.0020.00517.07
8.0.240.0000.00717.13
8.0.230.0000.00716.89
8.0.220.0050.00216.86
8.0.210.0030.00317.00
8.0.200.0030.00516.93
8.0.190.0070.00017.02
8.0.180.0070.00016.91
8.0.170.0000.00816.98
8.0.160.0040.00417.01
8.0.150.0030.00616.98
8.0.140.0000.00716.91
8.0.130.0060.00313.45
8.0.120.0000.00916.93
8.0.110.0000.00716.80
8.0.100.0050.00316.81
8.0.90.0050.00316.79
8.0.80.0040.01116.84
8.0.70.0000.00816.97
8.0.60.0040.00416.92
8.0.50.0030.00517.04
8.0.30.0100.01317.21
8.0.20.0180.00017.14
8.0.10.0000.00717.00
8.0.00.0130.01016.80
7.4.330.0020.00215.55
7.4.320.0030.00316.73
7.4.300.0030.00316.67
7.4.290.0040.00416.71
7.4.280.0050.00316.64
7.4.270.0030.00516.76
7.4.260.0000.00513.32
7.4.250.0050.00316.54
7.4.240.0040.00416.75
7.4.230.0030.00316.78
7.4.220.0050.00316.69
7.4.210.0080.01016.68
7.4.200.0000.00716.79
7.4.130.0100.00916.44
7.4.120.0100.00716.77
7.4.110.0130.00316.69
7.4.100.0120.01216.90
7.4.90.0140.01116.64
7.4.80.0090.01516.48
7.4.70.0180.00916.43
7.4.60.0110.01116.71
7.4.50.0120.00616.52
7.4.40.0160.00916.59
7.4.30.0190.00316.72
7.4.20.0230.00616.69
7.4.10.0070.01716.52
7.4.00.0140.00716.80
7.3.330.0000.00716.21
7.3.320.0000.00713.22
7.3.310.0000.00716.26
7.3.300.0040.00416.26
7.3.290.0070.01016.27
7.3.260.0040.01716.32
7.3.250.0140.00316.65
7.3.240.0070.01516.24
7.3.230.0150.00916.28
7.3.220.0140.00416.66
7.3.210.0100.01016.26
7.3.200.0130.00616.57
7.3.190.0100.01016.68
7.3.180.0090.00916.73
7.3.170.0120.01216.14
7.3.160.0070.01116.70
7.3.150.0110.00716.33
7.3.140.0180.00316.63
7.3.130.0060.01516.55
7.3.120.0100.01616.62
7.3.110.0080.01516.52
7.3.100.0090.01216.52
7.3.90.0060.01516.45
7.3.80.0150.00916.52
7.3.70.0070.01716.29
7.3.60.0070.02316.61
7.3.50.0160.00916.43
7.3.40.0110.01116.39
7.3.30.0110.00816.41
7.3.20.0090.01516.47
7.3.10.0140.00516.48
7.3.00.0000.02116.48

preferences:
29.16 ms | 403 KiB | 5 Q