3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subcat = 1; $cat = 2; $text = 'This is a non-qualifying#HashTag and this has white space before it #Test9 and some more text.'; $text = preg_replace('/(?<!\S)#\K[\da-z]+/i', "<a href=\"https://somesite.com/search?cityid=0&lang=en&search=\\0&subcatid=$subcat&view=ads&catid=$cat\">#\\0</a>", $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.5.30.0100.00819.29
8.5.20.0100.00919.55
8.5.10.0120.00518.37
8.5.00.0160.00519.90
8.4.180.0150.01119.76
8.4.170.0100.01120.12
8.4.160.0160.00923.93
8.4.150.0080.00416.86
8.4.140.0110.00917.89
8.4.130.0120.00817.94
8.4.120.0130.00420.72
8.4.110.0060.00618.85
8.4.100.0130.00817.87
8.4.90.0100.00920.65
8.4.80.0130.00718.84
8.4.70.0110.01020.63
8.4.60.0090.01220.33
8.4.50.0120.00818.64
8.4.40.0150.00617.82
8.4.30.0060.00319.52
8.4.20.0100.01019.82
8.4.10.0070.01417.88
8.3.300.0150.00820.61
8.3.290.0090.00420.93
8.3.280.0090.01218.58
8.3.270.0120.00716.63
8.3.260.0070.01216.82
8.3.250.0100.00919.11
8.3.240.0080.01116.71
8.3.230.0110.00816.52
8.3.220.0090.00918.71
8.3.210.0030.00416.58
8.3.200.0040.00516.45
8.3.190.0050.00317.01
8.3.180.0130.00918.25
8.3.170.0000.01817.09
8.3.160.0090.00918.30
8.3.150.0040.01520.57
8.3.140.0140.00416.78
8.3.130.0090.00316.44
8.3.120.0060.00320.67
8.3.110.0000.00820.94
8.3.100.0000.00924.06
8.3.90.0050.00326.77
8.3.80.0090.00018.18
8.3.70.0060.01018.43
8.3.60.0110.00816.75
8.3.50.0110.00616.80
8.3.40.0120.00318.96
8.3.30.0070.00718.64
8.3.20.0000.00721.71
8.3.10.0040.00423.48
8.3.00.0040.00419.68
8.2.300.0090.01022.13
8.2.290.0120.00617.05
8.2.280.0110.00918.53
8.2.270.0060.01217.43
8.2.260.0000.00816.57
8.2.250.0040.00418.44
8.2.240.0120.00616.89
8.2.230.0090.00022.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0040.00416.63
8.2.190.0160.00016.58
8.2.180.0070.00716.63
8.2.170.0120.00322.96
8.2.160.0070.00719.46
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0070.00720.43
8.2.120.0050.00326.35
8.2.110.0090.00021.19
8.2.100.0070.00417.84
8.2.90.0030.00618.16
8.2.80.0040.00417.97
8.2.70.0050.00317.93
8.2.60.0080.00018.09
8.2.50.0040.00418.16
8.2.40.0040.00422.18
8.2.30.0000.00719.39
8.2.20.0040.00418.00
8.2.10.0000.00817.91
8.2.00.0020.00518.21
8.1.340.0100.01017.67
8.1.330.0090.01016.19
8.1.320.0110.00820.13
8.1.310.0070.01120.17
8.1.300.0000.01118.41
8.1.290.0100.00030.84
8.1.280.0200.00725.92
8.1.270.0090.00023.87
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00622.61
8.1.230.0000.01122.68
8.1.220.0040.00417.93
8.1.210.0090.00020.66
8.1.200.0000.00817.35
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0040.00419.01
8.1.160.0050.00318.81
8.1.150.0030.00518.96
8.1.140.0000.00717.70
8.1.130.0000.00819.07
8.1.120.0080.00017.63
8.1.110.0030.00617.63
8.1.100.0000.00817.48
8.1.90.0020.00517.57
8.1.80.0020.00517.49
8.1.70.0080.00017.46
8.1.60.0040.00417.66
8.1.50.0000.00817.55
8.1.40.0000.00817.53
8.1.30.0070.00017.75
8.1.20.0000.00817.73
8.1.10.0000.00817.67
8.1.00.0040.00417.60
8.0.300.0050.00219.95
8.0.290.0080.00016.75
8.0.280.0000.00718.49
8.0.270.0070.00017.29
8.0.260.0030.00616.85
8.0.250.0030.00317.07
8.0.240.0030.00617.05
8.0.230.0030.00317.17
8.0.220.0090.00017.07
8.0.210.0030.00317.09
8.0.200.0000.00617.09
8.0.190.0000.00717.12
8.0.180.0030.00517.09
8.0.170.0090.00017.11
8.0.160.0000.00717.06
8.0.150.0000.00716.88
8.0.140.0000.00717.06
8.0.130.0050.00013.45
8.0.120.0000.00816.87
8.0.110.0040.00417.05
8.0.100.0080.00016.95
8.0.90.0020.00516.88
8.0.80.0090.00617.02
8.0.70.0040.00417.08
8.0.60.0000.00816.93
8.0.50.0040.00417.03
8.0.30.0090.01017.18
8.0.20.0090.01017.40
8.0.10.0040.00417.14
8.0.00.0130.00917.02
7.4.330.0050.00015.55
7.4.320.0030.00316.74
7.4.300.0060.00016.80
7.4.290.0040.00416.63
7.4.280.0070.00016.82
7.4.270.0070.00016.77
7.4.260.0070.00016.77
7.4.250.0000.00816.66
7.4.240.0050.00216.81
7.4.230.0000.00716.82
7.4.220.0070.00016.65
7.4.210.0070.00816.74
7.4.200.0040.00416.82
7.4.160.0100.00616.68
7.4.140.0110.00817.86
7.4.130.0120.00616.64
7.4.120.0120.00916.66
7.4.110.0120.00616.70
7.4.100.0090.00916.68
7.4.90.0130.00416.47
7.4.80.0110.00819.39
7.4.70.0130.01016.62
7.4.60.0080.01116.55
7.4.50.0070.00816.45
7.4.40.0100.01316.50
7.4.10.0070.01115.11
7.4.00.0060.01315.18
7.3.330.0020.00213.18
7.3.320.0040.00413.32
7.3.310.0070.00016.28
7.3.300.0000.00816.28
7.3.290.0030.00316.46
7.3.280.0060.00816.44
7.3.260.0110.01216.52
7.3.240.0080.00916.63
7.3.230.0130.00316.45
7.3.210.0000.01716.66
7.3.200.0060.01016.60
7.3.190.0030.01316.37
7.3.180.0120.00616.63
7.3.170.0080.01116.64
7.3.160.0030.01316.32
7.3.130.0030.01514.89
7.3.120.0070.00815.08
7.3.110.0040.01114.84
7.3.100.0030.00815.23
7.3.90.0060.00714.75
7.3.80.0040.00414.90
7.3.70.0050.00914.95
7.3.60.0100.00715.01
7.3.50.0070.00814.90
7.3.40.0030.00715.03
7.3.30.0000.01414.88
7.3.20.0060.00816.52
7.3.10.0030.01216.75
7.3.00.0060.00616.67
7.2.330.0060.01216.66
7.2.320.0060.01316.64
7.2.310.0090.00916.80
7.2.300.0000.02316.70
7.2.290.0130.01016.75
7.2.260.0110.00615.02
7.2.250.0070.01214.88
7.2.240.0070.00715.11
7.2.230.0050.00815.12
7.2.220.0030.01315.26
7.2.210.0030.00915.14
7.2.200.0100.00815.26
7.2.190.0040.01115.12
7.2.180.0030.01115.04
7.2.170.0060.00715.19
7.2.160.0030.01015.17
7.2.150.0050.01016.94
7.2.140.0080.00817.05
7.2.130.0100.00317.19
7.2.120.0090.00617.08
7.2.110.0060.00716.93
7.2.100.0050.00717.01
7.2.90.0020.01417.19
7.2.80.0030.01117.09
7.2.70.0000.01016.94
7.2.60.0090.00517.01
7.2.50.0080.00716.95
7.2.40.0060.00817.19
7.2.30.0090.01117.59
7.2.20.0110.00817.37
7.2.10.0080.01117.42
7.2.00.0070.01017.39
7.1.330.0050.00516.08
7.1.320.0080.00515.92
7.1.310.0060.00715.94
7.1.300.0090.00515.81
7.1.290.0060.00616.04
7.1.280.0100.00416.01
7.1.270.0100.00415.86
7.1.260.0050.00616.03
7.1.250.0070.00615.89
7.1.240.0030.01316.01
7.1.230.0050.01015.93
7.1.220.0080.00615.94
7.1.210.0020.01315.77
7.1.200.0060.00616.02
7.1.190.0120.00215.88
7.1.180.0030.01015.85
7.1.170.0050.00615.92
7.1.160.0030.00615.78
7.1.150.0130.00716.31
7.1.140.0090.00916.34
7.1.130.0090.00716.16
7.1.120.0100.00816.37
7.1.110.0070.01216.12
7.1.100.0110.00616.15
7.1.90.0060.00816.20
7.1.80.0040.01316.08
7.1.70.0070.00915.63
7.1.60.0110.01321.89
7.1.50.0270.01021.64
7.1.40.0140.00821.61
7.1.30.0160.00921.64
7.1.20.0170.00521.60
7.1.10.0090.00815.50
7.1.00.0100.00415.68
7.0.330.0010.00915.53
7.0.320.0040.00915.73
7.0.310.0050.00615.65
7.0.300.0060.00815.49
7.0.290.0040.00915.62
7.0.280.0060.00615.63
7.0.270.0030.00815.62
7.0.260.0050.00515.42
7.0.250.0030.00715.52
7.0.240.0030.01015.44
7.0.230.0080.00715.37
7.0.220.0020.00815.49
7.0.210.0050.00915.63
7.0.200.0070.00815.56
7.0.190.0020.01115.61
7.0.180.0070.00615.55
7.0.170.0090.00115.48
7.0.160.0070.00315.67
7.0.150.0040.00715.46
7.0.140.0030.01015.31
7.0.130.0020.01215.61
7.0.120.0070.00815.69
7.0.110.0070.00915.59
7.0.100.0060.01015.49
7.0.90.0090.00715.64
7.0.80.0040.00515.61
7.0.70.0050.00615.64
7.0.60.0120.00115.61
7.0.50.0050.00615.66
7.0.40.0050.00913.51
7.0.30.0040.00513.60
7.0.20.0030.00813.71
7.0.10.0010.00913.55
7.0.00.0040.01013.62
5.6.400.0050.00814.35
5.6.390.0060.01114.18
5.6.380.0040.00914.23
5.6.370.0050.00814.57
5.6.360.0070.00714.63
5.6.350.0060.00814.57
5.6.340.0050.00914.34
5.6.330.0070.00514.28
5.6.320.0080.00314.27
5.6.310.0030.00814.64
5.6.300.0040.00614.42
5.6.290.0030.00614.16
5.6.280.0070.00714.39
5.6.270.0040.00714.43
5.6.260.0060.00614.24
5.6.250.0070.00514.51
5.6.240.0090.00714.44
5.6.230.0020.00714.29
5.6.220.0040.00814.44
5.6.210.0030.01014.49
5.6.200.0040.00814.43
5.6.190.0060.00614.62
5.6.180.0080.00514.27
5.6.170.0020.01014.39
5.6.160.0070.00714.33
5.6.150.0060.00614.29
5.6.140.0040.00714.36
5.6.130.0050.00514.45
5.6.120.0080.00814.27
5.6.110.0060.00614.39
5.6.100.0060.00914.38
5.6.90.0040.00914.52
5.6.80.0070.00614.26
5.6.70.0090.00814.26
5.6.60.0040.00714.37
5.6.50.0050.00614.36
5.6.40.0070.00414.30
5.6.30.0060.00814.39
5.6.20.0020.01414.39
5.6.10.0080.00614.42
5.6.00.0050.00814.20

preferences:
63.43 ms | 1988 KiB | 5 Q