3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "An example of a website would be google.com or similar. However this is not what we are looking for"; $tlds = ['com', 'org', 'net']; echo preg_replace('~\.(?!(?:' . implode('|', $tlds) . ')\b)~i', '?', $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.4.140.0090.01317.66
8.4.130.0040.00617.89
8.4.120.0150.00524.10
8.4.110.0120.00819.98
8.4.100.0080.01017.55
8.4.90.0130.00720.46
8.4.80.0080.00820.71
8.4.70.0110.00820.81
8.4.60.0120.00918.61
8.4.50.0110.01224.09
8.4.40.0080.00019.58
8.4.30.0130.00618.49
8.4.20.0160.00318.79
8.4.10.0060.01319.63
8.3.270.0120.00816.49
8.3.260.0160.00316.55
8.3.250.0090.01118.95
8.3.240.0120.00916.80
8.3.230.0040.00416.84
8.3.220.0110.00519.11
8.3.210.0090.00716.84
8.3.200.0050.00416.52
8.3.190.0090.01116.98
8.3.180.0100.00918.87
8.3.170.0000.00819.00
8.3.160.0080.00817.11
8.3.150.0150.00319.00
8.3.140.0040.01420.59
8.3.130.0050.00318.66
8.3.120.0030.00620.77
8.3.110.0150.00616.64
8.3.100.0040.00418.54
8.3.90.0060.00326.77
8.3.80.0100.00018.43
8.3.70.0110.00716.63
8.3.60.0040.01118.55
8.3.50.0110.00418.40
8.3.40.0080.00818.98
8.3.30.0090.00618.94
8.3.20.0080.00024.18
8.3.10.0030.00624.66
8.3.00.0040.00426.16
8.2.290.0100.01018.92
8.2.280.0100.01018.11
8.2.270.0110.00716.46
8.2.260.0080.00016.77
8.2.250.0030.00518.68
8.2.240.0110.00416.96
8.2.230.0030.00520.94
8.2.220.0090.00024.06
8.2.210.0040.00426.77
8.2.200.0060.00316.75
8.2.190.0140.00516.58
8.2.180.0150.00025.92
8.2.170.0080.00818.95
8.2.160.0140.00022.96
8.2.150.0030.00625.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00421.26
8.2.110.0060.00319.36
8.2.100.0100.00317.72
8.2.90.0000.00917.88
8.2.80.0040.00418.91
8.2.70.0080.00017.93
8.2.60.0030.00717.99
8.2.50.0060.00318.10
8.2.40.0040.00419.42
8.2.30.0050.00219.27
8.2.20.0030.00618.07
8.2.10.0000.00721.12
8.2.00.0040.00419.26
8.1.330.0090.01016.38
8.1.320.0120.00817.86
8.1.310.0070.00018.35
8.1.300.0040.00415.96
8.1.290.0070.00330.84
8.1.280.0140.00725.92
8.1.270.0000.00823.99
8.1.260.0060.00326.35
8.1.250.0100.00728.09
8.1.240.0000.00819.34
8.1.230.0040.00717.71
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0000.00917.25
8.1.180.0060.00318.10
8.1.170.0030.00718.79
8.1.160.0040.00418.78
8.1.150.0040.00418.78
8.1.140.0000.00718.82
8.1.130.0000.00720.16
8.1.120.0050.00317.66
8.1.110.0040.00417.57
8.1.100.0000.00917.50
8.1.90.0040.00417.58
8.1.80.0030.00617.50
8.1.70.0030.00617.58
8.1.60.0040.00417.74
8.1.50.0030.00617.68
8.1.40.0000.00817.54
8.1.30.0070.00317.80
8.1.20.0040.00417.66
8.1.10.0040.00417.66
8.1.00.0030.00517.55
8.0.300.0050.00318.77
8.0.290.0080.00016.75
8.0.280.0000.00718.44
8.0.270.0020.00516.87
8.0.260.0060.00018.39
8.0.250.0070.00017.06
8.0.240.0030.00317.12
8.0.230.0000.00717.09
8.0.220.0030.00316.94
8.0.210.0030.00317.06
8.0.200.0030.00316.96
8.0.190.0000.00817.02
8.0.180.0040.00417.07
8.0.170.0000.00916.95
8.0.160.0040.00417.04
8.0.150.0000.00816.85
8.0.140.0080.00016.97
8.0.130.0030.00313.41
8.0.120.0080.00016.98
8.0.110.0000.00716.95
8.0.100.0050.00316.91
8.0.90.0050.00216.89
8.0.80.0030.01817.05
8.0.70.0050.00316.82
8.0.60.0080.00017.00
8.0.50.0070.00017.02
8.0.30.0130.01016.89
8.0.20.0100.01316.91
8.0.10.0100.01317.13
8.0.00.0000.02317.06
7.4.330.0000.00715.55
7.4.320.0060.00016.59
7.4.300.0000.00616.54
7.4.290.0040.00416.64
7.4.280.0030.00516.74
7.4.270.0040.00416.70
7.4.260.0050.00013.39
7.4.250.0030.00516.72
7.4.240.0040.00416.75
7.4.230.0030.00316.76
7.4.220.0070.00016.83
7.4.210.0080.00616.78
7.4.200.0050.00216.80
7.4.160.0130.00916.82
7.4.150.0070.01416.68
7.4.140.0120.00316.53
7.4.130.0100.01016.54
7.4.120.0090.01416.53
7.4.110.0100.01016.72
7.4.100.0110.01416.82
7.4.90.0180.00616.68
7.4.80.0130.01016.53
7.4.70.0160.00616.55
7.4.60.0090.00916.59
7.4.50.0090.01216.67
7.4.40.0100.01416.55
7.4.30.0030.01216.65
7.4.20.0070.01316.61
7.4.10.0090.01316.53
7.4.00.0060.01116.57
7.3.330.0000.00716.36
7.3.320.0040.00313.25
7.3.310.0000.00816.43
7.3.300.0060.00016.20
7.3.290.0150.00616.32
7.3.270.0170.00616.43
7.3.260.0110.01116.36
7.3.250.0080.01516.38
7.3.240.0070.01416.32
7.3.230.0080.01216.38
7.3.220.0060.01616.27
7.3.210.0140.01516.24
7.3.200.0160.01216.28
7.3.190.0070.01116.26
7.3.180.0080.00816.27
7.3.170.0130.00716.16
7.3.160.0190.01116.33
7.3.150.0080.01216.30
7.3.140.0090.01216.29
7.3.130.0090.00616.23
7.3.120.0100.01016.27
7.3.110.0060.01316.21
7.3.100.0070.01316.17
7.3.90.0060.01016.64
7.3.80.0090.01016.37
7.3.70.0120.00916.33
7.3.60.0070.01416.43
7.3.50.0090.01216.41
7.3.40.0090.01316.43
7.3.30.0120.00916.49
7.3.20.0070.01416.50
7.3.10.0060.01616.34
7.3.00.0070.01516.30

preferences:
30.99 ms | 403 KiB | 5 Q