3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'qwe <a href="/asd/ghj/wer.html">123</a>, qwe <a href="http://www.arrivo.ru/asdwer.html">123</a>, <a href=\'http://www.arrivo.ru/asdwer.html\'>123</a>, qwe <a title="http://arrivo.ru/123.html" href=//arrivo.ru/w/sd/ger.html title="http://arrivo.ru/123.html">123</a> <a title="http://arrivo.ru/123.html" href=//arrivo.ru/w/sd/ger.html>123</a>, qwe <a href=http://yandex.ru/index.html title="smth">123</a>, qwe <a href="/smth/else">123</a>, http://www.arrivo.ru/nooo.html :)'; $text = preg_replace('#href(\s*)=(\s*)(|"|\')(\s*)((http:|https:)?//(www\.)?arrivo\.ru|/[^/])/(.+)\.html(.+)(>|\s|"|\')#isU', 'href$1=$2$3$4$5/$8$9$10>', $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.3.40.0130.00718.85
8.3.30.0080.00819.08
8.3.20.0040.00420.20
8.3.10.0080.00021.85
8.3.00.0040.00419.63
8.2.170.0160.00622.96
8.2.160.0140.00020.35
8.2.150.0030.00524.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0000.00819.90
8.2.110.0030.00620.22
8.2.100.0040.00717.84
8.2.90.0040.00419.17
8.2.80.0030.00517.97
8.2.70.0050.00317.75
8.2.60.0050.00317.92
8.2.50.0090.00018.07
8.2.40.0040.00420.07
8.2.30.0000.00817.98
8.2.20.0000.00817.93
8.2.10.0000.00818.21
8.2.00.0040.00417.90
8.1.270.0000.00820.79
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00621.98
8.1.230.0070.00420.90
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0000.01117.34
8.1.190.0030.00617.35
8.1.180.0060.00318.10
8.1.170.0050.00520.48
8.1.160.0020.00521.94
8.1.150.0040.00418.79
8.1.140.0040.00417.53
8.1.130.0030.00317.84
8.1.120.0050.00217.62
8.1.110.0000.00717.41
8.1.100.0030.00517.44
8.1.90.0000.00817.60
8.1.80.0030.00517.46
8.1.70.0030.00317.47
8.1.60.0030.00517.72
8.1.50.0050.00317.67
8.1.40.0040.00417.70
8.1.30.0050.00317.78
8.1.20.0050.00317.64
8.1.10.0040.00417.66
8.1.00.0040.00417.61
8.0.300.0000.00818.77
8.0.290.0030.00617.00
8.0.280.0030.00318.40
8.0.270.0000.00717.32
8.0.260.0000.00717.22
8.0.250.0030.00317.19
8.0.240.0030.00317.06
8.0.230.0030.00317.09
8.0.220.0030.00317.00
8.0.210.0040.00416.91
8.0.200.0000.00717.05
8.0.190.0040.00417.07
8.0.180.0000.00717.08
8.0.170.0000.00717.04
8.0.160.0040.00416.98
8.0.150.0000.00817.01
8.0.140.0030.00516.86
8.0.130.0050.00213.42
8.0.120.0080.00016.89
8.0.110.0050.00316.91
8.0.100.0050.00316.85
8.0.90.0000.00716.88
8.0.80.0030.01217.02
8.0.70.0000.00717.00
8.0.60.0000.00816.82
8.0.50.0040.00416.78
8.0.30.0110.01317.16
8.0.20.0120.00817.40
8.0.10.0040.00417.19
8.0.00.0120.00716.97
7.4.330.0000.00515.05
7.4.320.0030.00316.57
7.4.300.0000.00616.72
7.4.290.0070.00016.69
7.4.280.0030.00516.81
7.4.270.0030.00316.61
7.4.260.0070.00316.68
7.4.250.0040.00416.69
7.4.240.0030.00516.76
7.4.230.0030.00316.69
7.4.220.0030.01716.84
7.4.210.0070.00716.72
7.4.200.0030.00316.61
7.4.160.0100.01016.70
7.4.150.0220.02517.40
7.4.140.0120.00817.86
7.4.130.0100.00716.76
7.4.120.0100.00716.60
7.4.110.0140.00416.63
7.4.100.0140.01116.56
7.4.90.0090.00916.56
7.4.80.0100.01119.39
7.4.70.0100.00716.83
7.4.60.0140.00316.57
7.4.50.0060.00316.59
7.4.40.0070.01116.59
7.4.30.0060.01616.54
7.4.00.0050.01015.05
7.3.330.0000.00613.11
7.3.320.0140.00013.24
7.3.310.0000.00716.30
7.3.300.0000.00716.26
7.3.290.0000.00716.28
7.3.280.0060.01116.37
7.3.270.0030.01417.40
7.3.260.0120.00616.38
7.3.250.0110.00916.41
7.3.240.0070.01016.61
7.3.230.0140.00516.80
7.3.210.0170.00016.51
7.3.200.0080.01419.39
7.3.190.0110.00716.78
7.3.180.0080.01116.43
7.3.170.0030.01316.37
7.3.160.0070.01016.59
7.3.120.0070.01115.22
7.3.110.0080.00815.14
7.3.100.0060.00914.68
7.3.90.0120.00314.83
7.3.80.0060.00915.23
7.3.70.0030.01214.97
7.3.60.0040.01214.70
7.3.50.0040.01114.73
7.3.40.0070.01014.86
7.3.30.0080.00414.79
7.3.20.0070.00716.76
7.3.10.0000.01516.93
7.3.00.0030.01316.79
7.2.330.0050.01316.76
7.2.320.0040.01216.65
7.2.310.0160.00616.60
7.2.300.0090.01216.63
7.2.290.0090.00916.54
7.2.250.0140.00315.24
7.2.240.0070.01014.96
7.2.230.0090.00915.00
7.2.220.0030.01015.16
7.2.210.0130.00615.12
7.2.200.0000.01414.99
7.2.190.0070.00715.25
7.2.180.0070.01014.92
7.2.170.0090.00915.15
7.2.80.0100.00316.74
7.2.60.0070.00716.76
7.2.00.0250.00719.37
7.1.330.0130.00316.27
7.1.320.0030.00715.80
7.1.310.0100.00715.79
7.1.300.0080.00416.00
7.1.290.0100.00715.93
7.1.280.0060.00615.88
7.1.270.0030.01015.79
7.1.260.0100.00315.81
7.1.200.0060.00915.82
7.1.100.0070.00318.12
7.1.70.0130.00017.02
7.1.60.0100.01619.50
7.1.50.0080.01517.17
7.1.00.0030.07722.47
7.0.200.0030.00715.02
7.0.140.0100.04721.99
7.0.110.0070.07721.80
7.0.100.0100.08321.83
7.0.90.0030.08721.67
7.0.80.0030.05721.59
7.0.70.0000.05721.72
7.0.60.0070.08321.78
7.0.50.0130.04022.20
7.0.40.0100.07020.11
7.0.30.0070.08019.91
7.0.20.0030.05720.13
7.0.10.0070.07020.18
7.0.00.0000.04320.10
5.6.280.0100.06320.81
5.6.260.0030.08720.45
5.6.250.0070.07720.59
5.6.240.0100.07720.64
5.6.230.0030.07720.61
5.6.220.0100.04020.48
5.6.210.0070.04020.62
5.6.200.0100.04720.98
5.6.190.0030.08021.18
5.6.180.0070.04020.88
5.6.170.0130.05721.06
5.6.160.0030.05021.09
5.6.150.0030.07320.89
5.6.140.0000.08021.23
5.6.130.0070.07021.07
5.6.120.0100.03321.09
5.6.110.0100.03721.19
5.6.100.0000.04721.02
5.6.90.0100.05021.14
5.6.80.0030.08020.42
5.6.70.0100.06320.46
5.6.60.0070.07320.34
5.6.50.0130.03320.45
5.6.40.0030.04020.42
5.6.30.0100.03320.35
5.6.20.0070.07720.24
5.6.10.0030.06720.24
5.6.00.0000.07720.33
5.5.380.0170.07320.41
5.5.370.0030.06320.52
5.5.360.0170.06720.47
5.5.350.0070.06020.32
5.5.340.0100.08020.73
5.5.330.0070.08020.63
5.5.320.0070.07720.81
5.5.310.0030.03720.83
5.5.300.0070.08320.98
5.5.290.0030.04320.89
5.5.280.0100.04020.71
5.5.270.0070.08320.71
5.5.260.0070.07720.93
5.5.250.0000.07020.64
5.5.240.0070.08020.09
5.5.230.0030.03720.20
5.5.220.0070.07720.22
5.5.210.0130.03320.13
5.5.200.0100.03720.16
5.5.190.0030.04020.24
5.5.180.0100.03720.04
5.5.160.0030.05020.11
5.5.150.0030.03720.19
5.5.140.0000.04020.10
5.5.130.0070.03320.23
5.5.120.0000.04020.18
5.5.110.0100.03320.08
5.5.100.0030.04019.95
5.5.90.0070.03320.14
5.5.80.0070.03320.06
5.5.70.0100.02720.07
5.5.60.0030.04020.20
5.5.50.0130.03720.16
5.5.40.0030.04020.07
5.5.30.0100.03719.90
5.5.20.0100.04719.98
5.5.10.0100.07020.12
5.5.00.0100.08019.90
5.4.450.0030.04319.30
5.4.440.0030.04019.38
5.4.430.0100.07719.38
5.4.420.0070.07719.21
5.4.410.0070.03019.26
5.4.400.0030.07719.02
5.4.390.0000.03719.05
5.4.380.0070.07718.95
5.4.370.0070.07019.22
5.4.360.0100.05719.06
5.4.350.0070.03318.96
5.4.340.0030.03719.14
5.4.320.0000.08019.13
5.4.310.0000.04018.97
5.4.300.0030.03718.96
5.4.290.0030.03319.06
5.4.280.0000.04018.92
5.4.270.0070.03318.97
5.4.260.0070.03319.21
5.4.250.0100.02718.86
5.4.240.0030.04018.91
5.4.230.0030.03718.86
5.4.220.0100.03318.97
5.4.210.0030.03718.95
5.4.200.0000.03718.89
5.4.190.4570.02713.35
5.4.180.0000.08718.92
5.4.170.0070.04719.03
5.4.160.0070.07019.17
5.4.150.0070.04319.20
5.4.140.0070.06316.21
5.4.130.0030.07016.29
5.4.120.0000.04316.13
5.4.110.0000.04316.48
5.4.100.0100.04016.43
5.4.90.0130.03316.47
5.4.80.0000.04716.42
5.4.70.0030.03716.47
5.4.60.0030.02716.41
5.4.50.0030.06316.33
5.4.40.0030.04716.33
5.4.30.0000.03716.11
5.4.20.0130.02316.33
5.4.10.0000.03716.27
5.4.00.0030.03315.86
5.3.290.0030.03714.76
5.3.280.0030.03314.54
5.3.270.0030.04314.48
5.3.260.0070.07714.67
5.3.250.0070.07014.67
5.3.240.0030.05014.39
5.3.230.0000.07714.52
5.3.220.0030.04714.46
5.3.210.0030.07314.57
5.3.200.0030.04014.58
5.3.190.0070.03714.58
5.3.180.0000.04014.45
5.3.170.0070.03014.64
5.3.160.0030.03314.35
5.3.150.0030.06714.43
5.3.140.0000.04014.48
5.3.130.0030.03314.54
5.3.120.0030.03714.33
5.3.110.0100.03014.61
5.3.100.0030.03013.83
5.3.90.0030.03013.95
5.3.80.0030.04013.92
5.3.70.0000.03713.84
5.3.60.0030.03313.95
5.3.50.0000.08013.81
5.3.40.0070.03313.79
5.3.30.0030.03013.97
5.3.20.0030.03313.64
5.3.10.0000.03013.52
5.3.00.0000.03013.53
5.2.170.0000.03313.38
5.2.160.0030.02013.38
5.2.150.0000.03013.38
5.2.140.0000.03013.38
5.2.130.0070.01713.38
5.2.120.0030.02713.38
5.2.110.0000.02313.38
5.2.100.0000.03013.38
5.2.90.0000.03013.38
5.2.80.0000.03313.38
5.2.70.0030.02713.38
5.2.60.0030.02013.38
5.2.50.0030.02713.38
5.2.40.0000.02313.38
5.2.30.0000.03013.38
5.2.20.0000.03313.38
5.2.10.0000.02713.38
5.2.00.0000.02713.38
5.1.60.0000.05013.38
5.1.50.0000.05313.38
5.1.40.0000.04013.38
5.1.30.0000.03013.38
5.1.20.0000.03013.38
5.1.10.0070.02313.38
5.1.00.0030.04713.38
5.0.50.0030.04313.38
5.0.40.0000.03013.38
5.0.30.0030.02313.38
5.0.20.0030.01713.38
5.0.10.0000.02013.38
5.0.00.0000.03313.38
4.4.90.0000.01313.38
4.4.80.0000.01313.38
4.4.70.0030.01013.38
4.4.60.0000.01713.38
4.4.50.0000.01313.38
4.4.40.0000.03013.38
4.4.30.0030.01013.38
4.4.20.0000.02713.38
4.4.10.0030.03713.38
4.4.00.0030.05013.38
4.3.110.0030.03313.38
4.3.100.0000.01313.38
4.3.90.0030.01313.38
4.3.80.0000.02313.38
4.3.70.0030.02013.38
4.3.60.0000.02013.38
4.3.50.0030.01313.38
4.3.40.0000.02713.38
4.3.30.0030.01313.38
4.3.20.0000.03313.38
4.3.10.0030.03313.38
4.3.00.0000.01313.38

preferences:
61.95 ms | 400 KiB | 5 Q