3v4l.org

run code in 300+ PHP versions simultaneously
<?php function modifyText($text) { $url = '~https?://[a-zA-Z0-9.-]+\.[a-zA-Z]{2,3}(?:\/\S*(?<!\.))?~'; $string= preg_replace($url, '<a href="$0" target="_blank">$0</a>', $text); return $string; } echo modifyText("Example text... https://example.com/site. More text here... https://example.com/site");

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.0140.00717.70
8.4.130.0130.00718.09
8.4.120.0110.00320.51
8.4.110.0090.00922.45
8.4.100.0090.01217.98
8.4.90.0120.00918.94
8.4.80.0050.00419.83
8.4.70.0130.00718.02
8.4.60.0110.00920.36
8.4.50.0110.00918.16
8.4.40.0210.00019.48
8.4.30.0080.00019.77
8.4.20.0070.01420.59
8.4.10.0190.00020.43
8.3.270.0120.00716.66
8.3.260.0100.00916.49
8.3.250.0090.00920.71
8.3.240.0090.00318.42
8.3.230.0100.00916.74
8.3.220.0110.00816.96
8.3.210.0100.00816.64
8.3.200.0060.00316.75
8.3.190.0130.00717.04
8.3.180.0100.00817.34
8.3.170.0070.01118.80
8.3.160.0090.00319.09
8.3.150.0130.00716.86
8.3.140.0150.00018.75
8.3.130.0090.00018.62
8.3.120.0030.00619.11
8.3.110.0130.00720.94
8.3.100.0050.00518.56
8.3.90.0120.00316.79
8.3.80.0060.00617.97
8.3.70.0110.01116.38
8.3.60.0070.00718.30
8.3.50.0100.00717.68
8.3.40.0070.00718.82
8.3.30.0070.00718.72
8.3.20.0060.00321.91
8.3.10.0040.00421.73
8.3.00.0040.00421.90
8.2.290.0100.00920.82
8.2.280.0080.00118.64
8.2.270.0080.01116.52
8.2.260.0040.01516.99
8.2.250.0060.00318.37
8.2.240.0060.00317.28
8.2.230.0070.00422.58
8.2.220.0060.01324.06
8.2.210.0110.00026.77
8.2.200.0070.00318.41
8.2.190.0040.01116.75
8.2.180.0120.00416.36
8.2.170.0090.00622.96
8.2.160.0100.00320.11
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00419.91
8.2.110.0070.00321.23
8.2.100.0040.00818.03
8.2.90.0040.00418.20
8.2.80.0030.00518.09
8.2.70.0060.00317.63
8.2.60.0080.00018.03
8.2.50.0040.00418.10
8.2.40.0050.00319.47
8.2.30.0000.00720.53
8.2.20.0040.00417.97
8.2.10.0040.00419.16
8.2.00.0050.00218.15
8.1.330.0130.00621.77
8.1.320.0120.00816.32
8.1.310.0120.00417.03
8.1.300.0060.00319.94
8.1.290.0060.00318.88
8.1.280.0070.00725.92
8.1.270.0040.00420.53
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00922.46
8.1.230.0080.00320.89
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0090.00017.23
8.1.190.0050.00317.23
8.1.180.0030.00518.10
8.1.170.0090.00018.78
8.1.160.0030.00618.78
8.1.150.0000.00718.87
8.1.140.0040.00418.96
8.1.130.0050.00320.34
8.1.120.0040.00417.52
8.1.110.0070.00017.55
8.1.100.0000.00817.43
8.1.90.0090.00017.54
8.1.80.0050.00317.54
8.1.70.0000.00717.55
8.1.60.0000.01017.77
8.1.50.0060.00317.67
8.1.40.0000.00817.72
8.1.30.0030.00617.79
8.1.20.0050.00317.67
8.1.10.0030.00517.55
8.1.00.0040.00417.64
8.0.300.0060.00319.91
8.0.290.0080.00016.75
8.0.280.0030.00318.40
8.0.270.0000.00717.29
8.0.260.0060.00018.52
8.0.250.0000.00716.98
8.0.240.0070.00017.08
8.0.230.0040.00417.02
8.0.220.0000.00716.92
8.0.210.0030.00316.96
8.0.200.0030.00316.98
8.0.190.0040.00417.04
8.0.180.0000.00716.93
8.0.170.0090.00017.01
8.0.160.0000.00717.00
8.0.150.0000.01116.91
8.0.140.0030.00616.99
8.0.130.0050.00013.32
8.0.120.0000.00816.96
8.0.110.0030.00517.02
8.0.100.0000.00916.94
8.0.90.0000.00816.87
8.0.80.0110.00716.94
8.0.70.0000.00916.85
8.0.60.0040.00417.10
8.0.50.0080.00017.04
8.0.30.0090.00917.20
8.0.20.0160.00617.11
8.0.10.0070.00017.15
8.0.00.0110.00616.96
7.4.330.0020.00216.75
7.4.320.0060.00016.71
7.4.300.0000.00616.82
7.4.290.0000.00716.84
7.4.280.0000.00816.80
7.4.270.0000.00716.69
7.4.260.0030.00316.60
7.4.250.0030.00316.76
7.4.240.0000.00816.74
7.4.230.0040.00416.84
7.4.220.0040.00416.52
7.4.210.0020.01316.76
7.4.200.0040.00416.52
7.4.160.0120.00616.66
7.4.140.0130.00517.86
7.4.130.0090.00916.61
7.4.120.0070.01016.59
7.4.110.0150.00316.72
7.4.100.0090.01016.65
7.4.90.0170.00016.61
7.4.80.0130.00419.39
7.4.70.0030.01416.97
7.4.60.0060.01016.71
7.4.50.0140.00416.63
7.4.40.0110.00516.78
7.4.00.0040.01115.39
7.3.330.0000.00513.37
7.3.320.0030.00313.21
7.3.310.0040.00416.46
7.3.300.0070.00016.41
7.3.290.0030.00316.32
7.3.280.0120.00816.34
7.3.260.0120.00716.73
7.3.240.0110.00616.52
7.3.230.0120.00416.71
7.3.210.0070.01016.74
7.3.200.0050.01216.60
7.3.190.0090.00916.34
7.3.180.0040.01516.48
7.3.170.0040.01116.59
7.3.160.0130.00316.38
7.3.120.0090.00614.96
7.3.110.0040.01115.27
7.3.100.0040.01114.84
7.3.90.0110.00314.77
7.3.80.0000.01114.61
7.3.70.0090.00614.75
7.3.60.0060.00614.97
7.3.50.0070.00714.91
7.3.40.0030.00814.71
7.3.30.0120.00514.93
7.3.20.0030.00716.67
7.3.10.0100.00416.79
7.3.00.0050.01016.51
7.2.330.0070.01716.63
7.2.320.0080.01716.81
7.2.310.0000.01616.64
7.2.300.0140.00716.76
7.2.290.0060.01316.73
7.2.240.0080.00815.17
7.2.230.0040.01115.19
7.2.220.0060.01015.09
7.2.210.0130.00315.02
7.2.200.0030.00814.91
7.2.190.0040.01114.96
7.2.180.0040.00815.03
7.2.170.0030.00715.24
7.2.160.0070.00614.80
7.2.150.0080.00616.75
7.2.140.0020.01017.03
7.2.130.0050.00717.07
7.2.120.0090.00817.10
7.2.110.0100.00316.82
7.2.100.0090.00816.95
7.2.90.0070.01117.17
7.2.80.0110.00316.94
7.2.70.0070.01117.00
7.2.60.0070.00716.99
7.2.50.0140.00516.98
7.2.40.0100.00217.08
7.2.30.0100.00716.94
7.2.20.0110.00517.07
7.2.10.0110.00517.04
7.2.00.0040.00917.08
7.1.330.0040.00815.69
7.1.320.0000.01015.71
7.1.310.0060.01216.13
7.1.300.0100.00315.93
7.1.290.0070.00415.92
7.1.280.0080.00915.68
7.1.270.0060.00715.93
7.1.260.0060.00815.96
7.1.250.0050.00715.98

preferences:
30.56 ms | 403 KiB | 5 Q