3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str="Link type 1 - www.google.com <br>link type 2 - http://www.goe3ogLEe.com <br>link type 3 - https://www.google.com <br>link type 4 - http://google.com <br>Link type 5 - http://www.vistaprint.com/local-search-profile.aspx?txi=15664&xnid=TopNav_Local+Search+Profile+%28linked+item%29_Websites&xnav=TopNav <br>Link type 6 - http://drive.google.com/?tab=mo&authuser=0#folders/0B7ZWeOAbtjQ1OHR1Yf343f33N2M "; $pattern = '#(www\.|https?://)?[\w\d]+\.[\d\w]{2}\S*#i'; $str1=preg_replace($pattern, '<a href="$0">$0</a>', $str); $str1=str_replace('href="www','href="http://www',$str1); echo $str1;

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.60.0170.00318.20
8.3.50.0090.00921.93
8.3.40.0110.00718.98
8.3.30.0070.00718.92
8.3.20.0060.00320.35
8.3.10.0080.00023.71
8.3.00.0080.00018.94
8.2.180.0120.00616.63
8.2.170.0110.00422.96
8.2.160.0030.01020.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0050.00319.61
8.2.110.0180.00421.17
8.2.100.0060.00618.03
8.2.90.0060.00319.03
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0050.00318.03
8.2.50.0080.00018.10
8.2.40.0030.00718.34
8.2.30.0040.00418.13
8.2.20.0040.00417.83
8.2.10.0050.00218.00
8.2.00.0000.00819.63
8.1.280.0140.00725.92
8.1.270.0030.00623.83
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00723.97
8.1.230.0030.00717.76
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0030.00617.36
8.1.180.0000.00818.10
8.1.170.0040.00418.72
8.1.160.0000.00721.98
8.1.150.0040.00418.77
8.1.140.0050.00217.48
8.1.130.0030.00317.76
8.1.120.0020.00517.41
8.1.110.0000.00817.44
8.1.100.0000.00717.58
8.1.90.0050.00317.58
8.1.80.0000.00917.42
8.1.70.0070.00017.55
8.1.60.0030.00517.62
8.1.50.0040.00417.64
8.1.40.0040.00417.65
8.1.30.0050.00317.74
8.1.20.0060.00317.68
8.1.10.0040.00417.57
8.1.00.0040.00417.57
8.0.300.0050.00218.77
8.0.290.0050.00216.88
8.0.280.0070.00018.57
8.0.270.0030.00316.88
8.0.260.0000.00617.27
8.0.250.0070.00016.95
8.0.240.0070.00316.98
8.0.230.0030.00316.93
8.0.220.0000.00616.93
8.0.210.0040.00416.98
8.0.200.0040.00417.02
8.0.190.0040.00416.93
8.0.180.0040.00417.01
8.0.170.0080.00016.99
8.0.160.0030.00517.04
8.0.150.0040.00416.93
8.0.140.0040.00416.85
8.0.130.0070.00013.47
8.0.120.0040.00416.95
8.0.110.0070.00016.93
8.0.100.0030.00316.83
8.0.90.0000.00817.02
8.0.80.0070.01016.91
8.0.70.0040.00417.05
8.0.60.0000.00717.02
8.0.50.0030.00616.78
8.0.30.0090.01217.10
8.0.20.0130.00617.41
8.0.10.0000.00717.01
8.0.00.0110.00917.02
7.4.330.0000.00615.00
7.4.320.0070.00016.76
7.4.300.0000.00716.55
7.4.290.0040.00416.75
7.4.280.0050.00316.75
7.4.270.0000.00816.64
7.4.260.0000.00716.64
7.4.250.0050.00316.65
7.4.240.0060.00116.72
7.4.230.0000.00716.55
7.4.220.0090.00916.76
7.4.210.0090.00616.79
7.4.200.0000.00816.88
7.4.160.0070.01016.62
7.4.150.0140.00517.40
7.4.140.0130.00517.86
7.4.130.0070.01216.63
7.4.120.0080.01116.69
7.4.110.0120.01216.53
7.4.100.0090.00916.71
7.4.90.0100.01016.62
7.4.80.0030.01619.39
7.4.70.0080.01216.55
7.4.60.0100.00616.63
7.4.50.0000.00816.65
7.4.40.0060.01016.57
7.4.30.0100.00716.61
7.4.00.0100.00714.88
7.3.330.0000.00613.21
7.3.320.0030.00313.17
7.3.310.0000.00716.36
7.3.300.0070.00016.39
7.3.290.0180.00316.34
7.3.280.0100.00916.36
7.3.270.0160.00317.40
7.3.260.0090.01516.43
7.3.250.0200.00316.53
7.3.240.0120.00616.55
7.3.230.0130.00516.70
7.3.210.0090.01316.35
7.3.200.0030.01819.39
7.3.190.0090.00916.68
7.3.180.0070.00916.61
7.3.170.0150.00716.88
7.3.160.0070.01016.43
7.3.120.0000.01714.92
7.3.10.0140.01116.61
7.3.00.0240.00016.52
7.2.330.0070.01016.64
7.2.320.0130.00316.70
7.2.310.0120.01216.60
7.2.300.0060.01116.61
7.2.290.0110.01116.95
7.2.130.0160.00517.16
7.2.120.0210.00716.41
7.2.110.0220.00716.67
7.2.100.0240.00716.59
7.2.90.0120.00516.53
7.2.80.0000.01216.73
7.2.70.0130.00716.75
7.2.60.0070.00716.76
7.2.50.0190.00816.88
7.2.40.0110.00716.98
7.2.30.0080.00616.81
7.2.20.0140.00716.53
7.2.10.0150.00516.31
7.2.00.0100.00718.17
7.1.250.0030.01715.64
7.1.200.0040.00815.88
7.1.100.0070.00718.45
7.1.70.0080.00017.31
7.1.60.0030.02019.70
7.1.50.0150.00617.16
7.1.00.0070.07322.46
7.0.200.0040.00416.76
7.0.140.0030.07022.05
7.0.60.0270.07719.92
7.0.50.0130.07717.87
7.0.40.0030.05020.18
7.0.30.0170.04320.14
7.0.20.0330.05320.03
7.0.10.0100.08720.34
7.0.00.0070.08320.03
5.6.280.0000.07720.81
5.6.210.0070.08020.48
5.6.200.0030.04718.20
5.6.190.0070.08720.32
5.6.180.0170.04320.43
5.6.170.0270.05320.38
5.6.160.0000.04720.47
5.6.150.0100.06318.15
5.6.140.0100.07018.16
5.6.130.0030.06318.11
5.6.120.0000.06321.01
5.6.110.0030.07320.97
5.6.100.0070.08320.96
5.6.90.0070.07321.03
5.6.80.0030.06320.40
5.5.350.0300.06020.34
5.5.340.0070.08018.00
5.5.330.0170.08020.23
5.5.320.0400.05020.32
5.5.310.0200.08720.21
5.5.300.0030.07718.01
5.5.290.0100.04017.98
5.5.280.0100.03320.86
5.5.270.0070.09020.76
5.5.260.0030.04720.67
5.5.250.0030.04320.61
5.5.240.0000.04020.27
5.4.450.3800.03019.47
5.4.440.0070.07719.48
5.4.430.1730.05719.56
5.4.420.4700.04019.32
5.4.410.3930.03719.36
5.4.400.4000.03719.15
5.4.390.3870.04319.16
5.4.380.3800.03719.21
5.4.370.3630.04319.04
5.4.360.3630.04018.89
5.4.350.3870.04018.93
5.4.340.0000.08019.13
5.4.320.3900.04019.15
5.4.310.3900.03719.06
5.4.300.3530.03319.17
5.4.290.3730.04019.12
5.4.280.3670.03018.99
5.4.270.3730.03019.13
5.4.260.4000.04319.23
5.4.250.3530.04019.13
5.4.240.3800.02318.88
5.4.230.3630.03718.86
5.4.220.3170.03318.99
5.4.210.3370.03719.14
5.4.200.3430.03319.10
5.4.190.3100.04018.95
5.4.180.3400.03719.13
5.4.170.3430.03319.13
5.4.160.3600.03318.96
5.4.150.3900.04319.15
5.4.140.3670.03316.26
5.4.130.3630.03316.38
5.4.120.3970.04016.21
5.4.110.3900.03016.41
5.4.100.3870.04016.35
5.4.90.3730.02716.47
5.4.80.3970.04016.48
5.4.70.3870.03316.23
5.4.60.4430.04016.55
5.4.50.3800.03016.60
5.4.40.3430.03316.55
5.4.30.3330.03316.35
5.4.20.3800.03316.54
5.4.10.3600.03716.43
5.4.00.3570.03715.86
5.3.290.3930.03014.56
5.3.280.3600.03314.52
5.3.270.3830.04314.56
5.3.260.3570.04014.54
5.3.250.3630.04314.54
5.3.240.3870.03314.70
5.3.230.3530.03714.47
5.3.220.3600.03314.36
5.3.210.4800.03014.46
5.3.200.3930.04314.35
5.3.190.4670.04014.50
5.3.180.4030.03714.46
5.3.170.3600.04314.50
5.3.160.4230.03714.50
5.3.150.4130.03314.50
5.3.140.3130.03314.48
5.3.130.4000.03714.34
5.3.120.3700.03314.47
5.3.110.3870.03714.48
5.3.100.3900.03714.00
5.3.90.3770.03313.97
5.3.80.3400.04013.86
5.3.70.3230.03713.96
5.3.60.3670.03313.94
5.3.50.4230.03713.96
5.3.40.3800.03313.75
5.3.30.3630.04013.83
5.3.20.3900.04013.71
5.3.10.4370.03313.58
5.3.00.4300.04713.65
5.2.170.3230.02711.13
5.2.160.3030.02311.05
5.2.150.3100.03011.04
5.2.140.3030.01710.99
5.2.130.3030.02311.18
5.2.120.2970.02711.04
5.2.110.3230.02311.18
5.2.100.3230.02711.00
5.2.90.3470.02311.08
5.2.80.3230.03010.95
5.2.70.3030.03011.03
5.2.60.2970.03010.93
5.2.50.3130.02711.02
5.2.40.1970.03310.94
5.2.30.3300.02710.83
5.2.20.2500.02710.86
5.2.10.2370.03310.86
5.2.00.2600.02710.70
5.1.60.2600.0279.98
5.1.50.3000.02310.00
5.1.40.2570.0239.96
5.1.30.2930.03010.19
5.1.20.2530.02710.50
5.1.10.2970.02710.06
5.1.00.3070.02710.14
5.0.50.1430.0208.62
5.0.40.1170.0208.38
5.0.30.1200.0308.21
5.0.20.1430.0278.23
5.0.10.1230.0178.07
5.0.00.1500.0408.17
4.4.90.1170.0176.27
4.4.80.1200.0176.27
4.4.70.1300.0136.27
4.4.60.1200.0136.27
4.4.50.1400.0176.27
4.4.40.1500.0236.27
4.4.30.1630.0176.27
4.4.20.1670.0136.27
4.4.10.1630.0136.27
4.4.00.1230.0206.27
4.3.110.1200.0176.27
4.3.100.1400.0136.27
4.3.90.1200.0136.27
4.3.80.0600.0236.27
4.3.70.1130.0136.27
4.3.60.1230.0136.27
4.3.50.1230.0176.27
4.3.40.1200.0276.27
4.3.30.0730.0206.27
4.3.20.0830.0176.27
4.3.10.0630.0176.27
4.3.00.0800.0236.27

preferences:
48.37 ms | 404 KiB | 6 Q