3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Hi bro! Look at my new website: www.example.com. I leard to build websites from http://another.example.net and from example.net.'; $newStr = preg_replace('!(http|ftp|scp)(s)?:\/\/[a-zA-Z0-9.?&_/]+!', "<a href=\"\\0\">\\0</a>",$str); echo $newStr;

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.0070.01118.36
8.3.50.0070.00922.15
8.3.40.0070.00718.96
8.3.30.0000.01419.15
8.3.20.0040.00420.38
8.3.10.0060.00321.91
8.3.00.0050.00322.44
8.2.180.0090.00916.88
8.2.170.0140.00422.96
8.2.160.0070.00721.06
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0030.00619.50
8.2.110.0030.00722.20
8.2.100.0080.00417.91
8.2.90.0000.00819.23
8.2.80.0080.00018.04
8.2.70.0030.01017.75
8.2.60.0070.00018.05
8.2.50.0030.00518.07
8.2.40.0060.00318.16
8.2.30.0000.00818.14
8.2.20.0000.00717.84
8.2.10.0090.00018.01
8.2.00.0050.00317.82
8.1.280.0170.00325.92
8.1.270.0000.00823.83
8.1.260.0030.00526.35
8.1.250.0050.00328.09
8.1.240.0030.00723.88
8.1.230.0080.00319.08
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0100.00017.47
8.1.190.0060.00317.41
8.1.180.0000.00818.10
8.1.170.0040.00418.71
8.1.160.0040.00421.91
8.1.150.0040.00418.75
8.1.140.0040.00417.51
8.1.130.0030.00317.90
8.1.120.0070.00017.63
8.1.110.0040.00417.59
8.1.100.0070.00017.44
8.1.90.0030.00617.52
8.1.80.0000.00817.54
8.1.70.0070.00017.54
8.1.60.0060.00317.57
8.1.50.0040.00417.61
8.1.40.0040.00417.54
8.1.30.0080.00017.79
8.1.20.0000.00717.76
8.1.10.0040.00417.63
8.1.00.0060.00317.61
8.0.300.0000.00718.77
8.0.290.0040.00416.92
8.0.280.0040.00418.48
8.0.270.0070.00017.30
8.0.260.0060.00016.98
8.0.250.0000.00717.10
8.0.240.0040.00417.02
8.0.230.0000.00717.00
8.0.220.0080.00016.86
8.0.210.0030.00316.99
8.0.200.0040.00417.00
8.0.190.0040.00417.02
8.0.180.0070.00016.94
8.0.170.0040.00417.05
8.0.160.0040.00416.93
8.0.150.0060.00316.92
8.0.140.0000.00816.87
8.0.130.0000.00613.45
8.0.120.0040.00416.94
8.0.110.0000.00716.90
8.0.100.0050.00516.96
8.0.90.0050.00216.93
8.0.80.0050.01016.87
8.0.70.0030.00517.05
8.0.60.0020.00517.05
8.0.50.0000.00716.96
8.0.30.0080.01217.30
8.0.20.0090.00817.40
8.0.10.0000.00817.06
8.0.00.0150.00316.96
7.4.330.0020.00215.06
7.4.320.0000.00616.56
7.4.300.0000.00716.78
7.4.290.0000.00716.66
7.4.280.0030.00316.73
7.4.270.0030.00316.66
7.4.260.0070.00016.54
7.4.250.0000.00716.71
7.4.240.0040.00416.68
7.4.230.0040.00416.86
7.4.220.0090.00916.61
7.4.210.0080.00616.71
7.4.200.0000.00716.86
7.4.190.0030.00316.85
7.4.160.0000.01716.79
7.4.150.0090.00917.40
7.4.140.0110.00717.86
7.4.130.0070.01116.62
7.4.120.0120.00916.63
7.4.110.0070.01016.62
7.4.100.0060.01116.74
7.4.90.0100.00716.59
7.4.80.0110.00619.39
7.4.70.0040.01216.83
7.4.60.0090.00616.64
7.4.50.0020.00216.75
7.4.40.0070.00722.77
7.4.30.0080.00816.72
7.4.00.0040.01215.21
7.3.330.0020.00213.18
7.3.320.0030.00313.27
7.3.310.0050.00316.36
7.3.300.0030.00316.37
7.3.290.0030.01116.31
7.3.280.0080.00816.37
7.3.270.0100.01317.40
7.3.260.0140.00316.64
7.3.250.0070.01116.54
7.3.240.0090.00616.58
7.3.230.0060.01116.71
7.3.210.0070.01016.59
7.3.200.0100.01319.39
7.3.190.0110.01116.59
7.3.180.0110.00416.65
7.3.170.0120.00316.29
7.3.160.0080.00816.61
7.3.120.0030.01315.02
7.2.330.0100.00716.75
7.2.320.0060.01616.71
7.2.310.0100.00716.55
7.2.300.0100.00716.63
7.2.290.0100.01316.74
7.2.00.0070.01019.54
7.1.100.0060.00318.00
7.1.70.0000.00717.24
7.1.60.0000.01017.37
7.1.50.0040.01617.14
7.1.00.0030.07722.47
7.0.200.0090.00917.02
7.0.140.0100.06722.00
7.0.60.0230.07321.86
7.0.50.0030.04017.81
7.0.40.0100.05020.11
7.0.30.0230.05320.14
7.0.20.0200.05020.35
7.0.10.0030.05020.34
7.0.00.0130.07720.03
5.6.280.0000.07721.10
5.6.210.0070.03720.60
5.6.200.0100.07718.12
5.6.190.0200.04320.35
5.6.180.0170.08320.56
5.6.170.0330.07320.71
5.6.160.0100.08320.50
5.6.150.0000.07318.14
5.6.140.0070.08718.18
5.6.130.0070.07018.13
5.6.120.0070.06320.98
5.6.110.0030.08720.97
5.6.100.0030.05321.08
5.6.90.0170.07321.09
5.6.80.0070.07020.38
5.5.350.0270.03320.43
5.5.340.0130.07318.02
5.5.330.0130.08020.18
5.5.320.0300.07320.21
5.5.310.0200.03720.30
5.5.300.0100.07717.96
5.5.290.0030.04018.02
5.5.280.0070.05320.79
5.5.270.0070.06320.86
5.5.260.0100.08320.73
5.5.250.0000.10020.71
5.5.240.0170.06020.18
5.4.450.3630.03719.43
5.4.440.3270.04719.46
5.4.430.3830.04319.36
5.4.420.3070.04019.36
5.4.410.4230.04319.06
5.4.400.4130.03319.08
5.4.390.3970.04018.87
5.4.380.4000.03319.08
5.4.370.4070.04019.06
5.4.360.3870.03719.10
5.4.350.3970.04018.89
5.4.340.4130.05019.19
5.4.320.4070.03719.16
5.4.310.4200.02319.01
5.4.300.4170.03718.99
5.4.290.4300.04018.85
5.4.280.4070.03319.06
5.4.270.3870.04319.12
5.4.260.3570.04019.09
5.4.250.3930.03718.99
5.4.240.4070.03718.96
5.4.230.3700.03318.86
5.4.220.3630.03718.87
5.4.210.1800.04019.18
5.4.200.0030.05019.15
5.4.190.3770.03319.14
5.4.180.4070.03319.14
5.4.170.3900.03719.16
5.4.160.3770.04019.16
5.4.150.3930.04019.22
5.4.140.4030.03716.38
5.4.130.3830.03316.44
5.4.120.3930.04016.39
5.4.110.0070.05016.16
5.4.100.0000.07716.25
5.4.90.2030.04316.46
5.4.80.3900.03716.24
5.4.70.3870.03716.47
5.4.60.3670.03016.13
5.4.50.3870.03316.47
5.4.40.4030.03316.48
5.4.30.3930.03716.13
5.4.20.5000.03016.10
5.4.10.4570.04016.43
5.4.00.4570.03715.76
5.3.290.4030.04014.55
5.3.280.3830.04314.46
5.3.270.4800.04314.68
5.3.260.4070.03714.50
5.3.250.4070.04314.53
5.3.240.3930.04314.39
5.3.230.4670.03714.52
5.3.220.3530.03314.52
5.3.210.3870.04314.48
5.3.200.0200.03714.49
5.3.190.4500.04014.48
5.3.180.4400.04314.38
5.3.170.3730.03714.35
5.3.160.3930.03314.54
5.3.150.3900.04014.49
5.3.140.3430.05014.51
5.3.130.3970.03714.44
5.3.120.3900.04014.54
5.3.110.3970.03714.47
5.3.100.4530.03713.96
5.3.90.4600.03713.89
5.3.80.4270.03313.96
5.3.70.4500.03013.97
5.3.60.4300.03013.93
5.3.50.4000.03013.87
5.3.40.3170.03713.78
5.3.30.3730.03313.73
5.3.20.3700.03013.61
5.3.10.3670.03713.49
5.3.00.3570.04013.56
5.2.170.3030.03311.13
5.2.160.3200.02311.15
5.2.150.3200.02710.98
5.2.140.3130.02310.96
5.2.130.2970.03311.18
5.2.120.3070.02711.09
5.2.110.3100.02711.05
5.2.100.3030.02711.08
5.2.90.3070.02711.04
5.2.80.3100.02711.07
5.2.70.3030.03011.06
5.2.60.3570.03711.20
5.2.50.3200.03010.91
5.2.40.2430.03010.96
5.2.30.2370.02710.97
5.2.20.2630.02310.92
5.2.10.2830.03010.84
5.2.00.3700.02710.70
5.1.60.2800.02710.00
5.1.50.2930.02710.00
5.1.40.2870.0239.97
5.1.30.3200.03010.32
5.1.20.3230.03010.25
5.1.10.2670.0239.96
5.1.00.3100.02010.08
5.0.50.1630.0208.46
5.0.40.1630.0208.31
5.0.30.1630.0338.19
5.0.20.1500.0238.10
5.0.10.1430.0238.07
5.0.00.1430.0378.16
4.4.90.1200.0175.78
4.4.80.1330.0205.83
4.4.70.1530.0205.82
4.4.60.1300.0175.79
4.4.50.1430.0175.89
4.4.40.1800.0275.79
4.4.30.1830.0175.86
4.4.20.1670.0135.87
4.4.10.1570.0375.84
4.4.00.1070.0335.89
4.3.110.1500.0135.78
4.3.100.1100.0175.74
4.3.90.1500.0135.79
4.3.80.1670.0235.75
4.3.70.1700.0175.74
4.3.60.1770.0135.74
4.3.50.1500.0175.71
4.3.40.1730.0235.68
4.3.30.0830.0235.63
4.3.20.0830.0205.63
4.3.10.0800.0175.63
4.3.00.0800.0135.63

preferences:
39.1 ms | 401 KiB | 5 Q