3v4l.org

run code in 300+ PHP versions simultaneously
<?php $message = '<a href="https://www.domain.nl/internet" target="_blank" title="https://www.domain.nl/internet">https://www.domain.nl/internet</a>'; $message = preg_replace_callback('~\shref=[\'"]\Khttps?://www\.domain\.nl(?:/[^\s"\'<>]*)?~i', function($matches) { return 'https://www.affiliatedomain.com/cread.php?id=1234&amp;affid=12345&amp;clickref=me&amp;p=' . urlencode('[[' . $matches[0] . ']]'); }, $message); echo $message; // =%5B%5Bhttps%3A%2F%2Fwww.domain.nl%2Finternet%5D%5D

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.5.10.0120.00616.84
8.5.00.0080.01320.39
8.4.160.0110.01023.66
8.4.150.0030.00014.05
8.4.140.0170.00417.81
8.4.130.0170.00917.66
8.4.120.0060.00322.56
8.4.110.0080.00918.77
8.4.100.0100.01118.34
8.4.90.0140.00620.50
8.4.80.0050.00318.91
8.4.70.0030.00618.86
8.4.60.0130.00818.82
8.4.50.0090.01119.12
8.4.40.0100.01019.84
8.4.30.0120.00920.41
8.4.20.0130.00718.75
8.4.10.0100.01018.23
8.3.280.0090.01118.72
8.3.270.0120.00716.61
8.3.260.0130.00716.96
8.3.250.0120.00818.81
8.3.240.0110.00916.73
8.3.230.0060.00216.74
8.3.220.0060.00219.06
8.3.210.0070.00716.69
8.3.200.0070.01316.72
8.3.190.0070.00717.19
8.3.180.0110.00518.78
8.3.170.0070.00718.98
8.3.160.0070.00319.24
8.3.150.0140.00017.22
8.3.140.0050.00316.79
8.3.130.0030.00518.52
8.3.120.0060.00318.98
8.3.110.0030.00720.94
8.3.100.0000.00824.06
8.3.90.0070.00326.77
8.3.80.0030.00616.75
8.3.70.0120.00316.75
8.3.60.0190.00316.75
8.3.50.0110.00922.01
8.3.40.0070.01019.05
8.3.30.0110.00418.96
8.3.20.0080.00021.94
8.3.10.0040.00422.10
8.3.00.0040.00423.66
8.2.290.0120.00616.70
8.2.280.0120.00718.63
8.2.270.0130.00616.91
8.2.260.0110.00716.65
8.2.250.0070.00318.63
8.2.240.0110.00417.00
8.2.230.0040.00422.58
8.2.220.0030.00537.54
8.2.210.0110.00726.77
8.2.200.0140.00717.00
8.2.190.0120.00317.00
8.2.180.0060.00918.66
8.2.170.0130.00622.96
8.2.160.0040.01122.25
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00426.16
8.2.110.0100.00021.13
8.2.100.0060.00620.00
8.2.90.0030.00618.34
8.2.80.0000.00919.39
8.2.70.0060.00317.91
8.2.60.0040.00418.22
8.2.50.0030.00618.10
8.2.40.0030.00719.61
8.2.30.0070.00019.41
8.2.20.0000.00718.29
8.2.10.0040.00419.40
8.2.00.0000.00719.29
8.1.330.0130.00716.39
8.1.320.0140.00618.31
8.1.310.0040.00416.75
8.1.300.0000.00818.07
8.1.290.0070.00318.88
8.1.280.0070.01125.92
8.1.270.0040.00422.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00720.97
8.1.230.0110.00022.75
8.1.220.0060.00317.91
8.1.210.0100.00318.77
8.1.200.0130.00017.72
8.1.190.0070.00417.36
8.1.180.0080.00018.10
8.1.170.0000.00818.63
8.1.160.0050.00320.72
8.1.150.0040.00418.90
8.1.140.0030.00320.96
8.1.130.0030.00320.05
8.1.120.0050.00317.53
8.1.110.0040.00417.63
8.1.100.0050.00317.61
8.1.90.0040.00417.57
8.1.80.0040.00417.52
8.1.70.0040.00417.57
8.1.60.0040.00417.66
8.1.50.0030.00717.67
8.1.40.0060.00317.66
8.1.30.0000.00717.89
8.1.20.0090.00017.86
8.1.10.0030.00517.71
8.1.00.0060.00617.57
8.0.300.0040.00419.71
8.0.290.0050.00316.88
8.0.280.0030.00518.42
8.0.270.0050.00316.96
8.0.260.0030.00320.09
8.0.250.0030.00317.15
8.0.240.0000.00717.05
8.0.230.0040.00317.06
8.0.220.0040.00417.02
8.0.210.0000.00717.05
8.0.200.0000.00716.97
8.0.190.0040.00417.02
8.0.180.0070.00017.09
8.0.170.0030.00517.07
8.0.160.0000.00717.05
8.0.150.0030.00317.09
8.0.140.0000.00716.89
8.0.130.0030.00313.41
8.0.120.0040.00417.04
8.0.110.0040.00417.11
8.0.100.0000.00717.12
8.0.90.0040.00417.07
8.0.80.0040.01117.07
8.0.70.0080.00016.99
8.0.60.0000.00717.04
8.0.50.0040.00416.92
8.0.30.0090.00917.32
8.0.20.0130.01017.30
8.0.10.0000.00717.13
8.0.00.0100.00916.92
7.4.330.0020.00215.55
7.4.320.0060.00016.84
7.4.300.0070.00016.71
7.4.290.0000.00716.86
7.4.280.0060.00316.68
7.4.270.0000.00716.77
7.4.260.0000.00613.52
7.4.250.0030.00316.74
7.4.240.0070.00016.89
7.4.230.0050.00216.63
7.4.220.0020.00516.82
7.4.210.0070.00716.78
7.4.200.0000.00716.78
7.4.140.0130.00717.86
7.4.130.0090.00916.84
7.4.120.0100.00716.73
7.4.110.0090.00916.78
7.4.100.0100.00716.75
7.4.90.0040.01416.81
7.4.80.0140.00319.39
7.4.70.0120.00916.70
7.4.60.0000.02016.72
7.4.50.0070.00716.63
7.4.40.0090.01216.61
7.4.00.0070.00915.15
7.3.330.0050.00216.50
7.3.320.0030.00313.48
7.3.310.0070.00016.57
7.3.300.0000.00716.48
7.3.290.0030.00316.40
7.3.280.0080.01216.39
7.3.260.0100.00916.65
7.3.240.0070.01016.67
7.3.230.0140.00916.55
7.3.210.0100.00916.58
7.3.200.0030.01416.79
7.3.190.0040.01716.65
7.3.180.0070.01016.85
7.3.170.0070.01116.47
7.3.160.0100.00716.48
7.3.120.0060.01215.08
7.3.110.0070.00414.91
7.3.100.0030.01014.92
7.3.90.0030.01014.94
7.3.80.0000.01414.82
7.3.70.0020.01214.79
7.3.60.0110.00314.77
7.3.50.0060.00614.80
7.3.40.0030.00615.07
7.3.30.0090.00514.87
7.3.20.0020.01116.92
7.3.10.0070.00716.73
7.3.00.0020.01216.75
7.2.330.0070.02016.65
7.2.320.0030.01316.61
7.2.310.0080.00916.94
7.2.300.0160.00016.83
7.2.290.0030.01516.84
7.2.250.0000.01815.35
7.2.240.0070.01415.11
7.2.230.0100.00715.28
7.2.220.0000.01115.21
7.2.210.0080.00415.09
7.2.200.0100.00315.29
7.2.190.0050.00515.13
7.2.180.0060.01015.08
7.2.170.0080.00515.28
7.2.160.0050.00815.18
7.2.150.0030.01217.21
7.2.140.0090.00617.13
7.2.130.0060.00617.23
7.2.120.0040.00716.87
7.2.110.0030.00717.07
7.2.100.0030.00716.77
7.2.90.0070.00417.23
7.2.80.0090.00617.23
7.2.70.0110.00017.13
7.2.60.0090.00617.31
7.2.50.0030.00717.21
7.2.40.0070.00317.02
7.2.30.0150.00016.79
7.2.20.0070.01017.19
7.2.10.0050.00517.11
7.2.00.0030.01017.13
7.1.330.0070.00716.11
7.1.320.0040.00415.71
7.1.310.0070.00715.99
7.1.300.0050.00615.81
7.1.290.0030.01215.89
7.1.280.0020.01115.95
7.1.270.0030.00815.76
7.1.260.0070.00516.05
7.1.250.0050.00515.86

preferences:
34.22 ms | 403 KiB | 5 Q