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>', $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.60.0100.00716.75
8.3.50.0150.00522.07
8.3.40.0090.01218.73
8.3.30.0040.01119.00
8.3.20.0060.00320.18
8.3.10.0000.00821.72
8.3.00.0030.00619.51
8.2.180.0150.00318.41
8.2.170.0100.00622.96
8.2.160.0100.00320.35
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00819.79
8.2.110.0100.00019.30
8.2.100.0040.00817.63
8.2.90.0000.00819.22
8.2.80.0060.00317.97
8.2.70.0040.00417.74
8.2.60.0060.00317.80
8.2.50.0060.00318.07
8.2.40.0000.00818.16
8.2.30.0040.00418.11
8.2.20.0030.00517.85
8.2.10.0040.00418.05
8.2.00.0080.00018.04
8.1.280.0140.00025.92
8.1.270.0060.00320.68
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00421.99
8.1.230.0110.00417.48
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0080.00017.23
8.1.180.0000.00918.10
8.1.170.0050.00518.57
8.1.160.0000.00721.98
8.1.150.0040.00418.75
8.1.140.0000.00817.47
8.1.130.0000.00717.86
8.1.120.0000.00717.59
8.1.110.0030.00617.51
8.1.100.0000.00817.46
8.1.90.0080.00017.57
8.1.80.0040.00417.47
8.1.70.0070.00017.62
8.1.60.0030.00617.70
8.1.50.0030.00617.70
8.1.40.0040.00417.64
8.1.30.0030.00617.72
8.1.20.0000.00817.66
8.1.10.0030.00617.66
8.1.00.0000.00717.57
8.0.300.0040.00418.77
8.0.290.0050.00216.88
8.0.280.0000.00718.49
8.0.270.0070.00017.30
8.0.260.0040.00417.21
8.0.250.0000.00717.04
8.0.240.0030.00317.08
8.0.230.0000.00717.08
8.0.220.0000.00717.04
8.0.210.0070.00016.89
8.0.200.0000.00717.07
8.0.190.0000.00717.10
8.0.180.0040.00417.03
8.0.170.0030.00517.04
8.0.160.0070.00017.02
8.0.150.0040.00416.98
8.0.140.0000.00816.98
8.0.130.0000.00713.41
8.0.120.0060.00316.85
8.0.110.0000.00716.96
8.0.100.0040.00417.01
8.0.90.0020.00516.81
8.0.80.0160.00716.89
8.0.70.0050.00316.83
8.0.60.0000.00717.06
8.0.50.0040.00416.86
8.0.30.0090.01217.19
8.0.20.0070.01217.40
8.0.10.0030.00517.01
8.0.00.0090.00916.94
7.4.330.0000.00615.03
7.4.320.0040.00316.82
7.4.300.0000.00616.70
7.4.290.0080.00016.76
7.4.280.0000.00816.68
7.4.270.0030.00416.78
7.4.260.0070.00016.68
7.4.250.0040.00416.58
7.4.240.0010.00616.69
7.4.230.0030.00316.87
7.4.220.0040.01516.67
7.4.210.0050.01116.83
7.4.200.0040.00416.87
7.4.160.0110.00716.68
7.4.150.0120.00617.40
7.4.140.0090.01217.86
7.4.130.0110.01016.58
7.4.120.0110.00716.77
7.4.110.0090.00816.68
7.4.100.0130.00316.46
7.4.90.0150.00616.78
7.4.80.0150.00819.39
7.4.70.0110.00716.75
7.4.60.0040.01216.54
7.4.50.0030.00316.41
7.4.40.0100.00616.56
7.4.30.0100.01216.80
7.4.00.0090.00914.98
7.3.330.0000.00613.29
7.3.320.0090.00613.20
7.3.310.0040.00416.23
7.3.300.0060.00016.40
7.3.290.0030.00316.27
7.3.280.0100.00716.34
7.3.270.0090.01617.40
7.3.260.0070.01116.60
7.3.250.0080.00916.40
7.3.240.0100.01016.53
7.3.230.0090.00916.63
7.3.210.0130.00416.20
7.3.200.0110.00719.39
7.3.190.0150.00816.46
7.3.180.0090.00616.47
7.3.170.0030.01316.38
7.3.160.0110.00616.39
7.3.10.0100.00716.66
7.3.00.0110.00416.68
7.2.330.0000.01816.56
7.2.320.0110.00716.76
7.2.310.0090.00916.66
7.2.300.0130.00316.82
7.2.290.0070.01316.73
7.2.130.0070.01417.02
7.2.120.0090.00316.83
7.2.110.0040.00716.88
7.2.100.0160.00616.86
7.2.90.0030.01316.89
7.2.80.0030.01617.05
7.2.70.0050.00517.08
7.2.60.0050.00617.04
7.2.50.0030.01016.88
7.2.40.0060.01216.84
7.2.30.0080.00416.55
7.2.20.0000.01016.77
7.2.10.0000.01116.69
7.2.00.0200.00418.24
7.1.250.0080.00315.84
7.1.200.0030.00716.03
7.1.100.0000.01117.81
7.1.70.0040.00417.35
7.1.60.0040.02219.50
7.1.50.0030.01916.93
7.1.00.0070.07322.47
7.0.200.0040.01115.22
7.0.140.0030.04321.99
7.0.60.0100.06319.90
7.0.50.0030.05317.88
7.0.40.0030.06020.11
7.0.30.0300.08020.07
7.0.20.0270.04720.04
7.0.10.0330.08320.20
7.0.00.0070.04020.36
5.6.280.0030.07020.77
5.6.210.0070.03720.59
5.6.200.0070.07318.08
5.6.190.0130.04320.41
5.6.180.0270.07720.53
5.6.170.0200.03720.50
5.6.160.0100.08320.71
5.6.150.0030.08318.15
5.6.140.0030.06318.17
5.6.130.0030.04018.16
5.6.120.0070.05021.01
5.6.110.0070.08020.98
5.6.100.0100.03720.97
5.6.90.0030.04320.94
5.6.80.0100.06020.38
5.5.350.0100.04720.42
5.5.340.0100.06717.99
5.5.330.0070.06320.57
5.5.320.0070.04320.19
5.5.310.0200.04020.21
5.5.300.0030.06017.98
5.5.290.0070.03718.00
5.5.280.0130.05320.68
5.5.270.0070.04020.89
5.5.260.0030.04020.79
5.5.250.0130.05720.71
5.5.240.0000.09020.13
5.4.450.0170.05319.11
5.4.440.0770.05719.63
5.4.430.1070.05019.13
5.4.420.0930.05019.63
5.4.410.0170.04719.41
5.4.400.0270.06318.68
5.4.390.0270.06018.71
5.4.380.0330.06018.57
5.4.370.0330.06018.63
5.4.360.0300.05718.57
5.4.350.0330.06718.76
5.4.340.0530.05718.46
5.4.320.0600.06318.70
5.4.310.0330.05718.76
5.4.300.0270.05718.55
5.4.290.0300.05718.73
5.4.280.0400.07318.70
5.4.270.0370.05718.56
5.4.260.0370.05318.47
5.4.250.0300.05718.49
5.4.240.0330.05718.51
5.4.230.0430.05718.71
5.4.220.0570.05718.62
5.4.210.0370.05018.65
5.4.200.0300.06316.53
5.4.190.0270.05718.76
5.4.180.0200.06718.69
5.4.170.0370.05718.68
5.4.160.0430.05018.46
5.4.150.0500.05718.61
5.4.140.0600.06316.20
5.4.130.0530.05316.25
5.4.120.0430.06316.17
5.4.110.0470.06016.27
5.4.100.0330.06016.31
5.4.90.0400.08016.26
5.4.80.0300.05316.02
5.4.70.0370.06316.09
5.4.60.0430.04016.22
5.4.50.0300.05716.23
5.4.40.0430.04716.05
5.4.30.0370.04316.22
5.4.20.0400.05316.13
5.4.10.0370.07016.27
5.4.00.0330.05715.75
5.3.290.0270.05714.76
5.3.280.0300.05714.55
5.3.270.0330.07714.59
5.3.260.0300.05714.66
5.3.250.0470.05314.60
5.3.240.0330.05714.70
5.3.230.0300.05314.66
5.3.220.0300.05314.64
5.3.210.0270.06014.59
5.3.200.0330.06014.48
5.3.190.0400.05014.66
5.3.180.0500.05014.52
5.3.170.0370.04714.55
5.3.160.0400.04714.56
5.3.150.0330.06014.66
5.3.140.0500.05714.55
5.3.130.0370.06314.55
5.3.120.0370.06014.50
5.3.110.0330.06014.48
5.3.100.0300.06014.00
5.3.90.0500.05714.00
5.3.80.0270.05713.98
5.3.70.0430.05713.95
5.3.60.0330.05313.91
5.3.50.0300.05313.95
5.3.40.0330.04713.87
5.3.30.0230.05314.06
5.3.20.0270.05313.61
5.3.10.0400.06313.63
5.3.00.0300.05313.59
5.2.170.0430.04711.18
5.2.160.0200.05711.11
5.2.150.0300.04711.18
5.2.140.0470.04011.10
5.2.130.0400.04711.15
5.2.120.0330.04011.13
5.2.110.0270.04011.23
5.2.100.0300.04311.07
5.2.90.0200.05311.14
5.2.80.0300.04311.06
5.2.70.0230.04711.15
5.2.60.0200.04711.10
5.2.50.0170.05711.08
5.2.40.0270.03311.14
5.2.30.0230.04311.02
5.2.20.0300.04011.10
5.2.10.0400.03310.88
5.2.00.0330.04710.71
5.1.60.0170.03310.18
5.1.50.0270.03010.01
5.1.40.0170.03710.00
5.1.30.0170.04010.35
5.1.20.0200.04010.33
5.1.10.0270.04310.20
5.1.00.0270.05010.04
5.0.50.0130.0278.52
5.0.40.0100.0438.43
5.0.30.0100.0508.38
5.0.20.0170.0338.22
5.0.10.0130.0308.29
5.0.00.0130.0478.20
4.4.90.0070.0275.91
4.4.80.0170.0175.95
4.4.70.0170.0205.91
4.4.60.0130.0175.89
4.4.50.0070.0305.95
4.4.40.0030.0475.91
4.4.30.0100.0235.82
4.4.20.0100.0275.98
4.4.10.0130.0275.97
4.4.00.0170.0375.91
4.3.110.0070.0275.82
4.3.100.0130.0235.82
4.3.90.0130.0235.79
4.3.80.0070.0375.86
4.3.70.0030.0275.77
4.3.60.0100.0275.91
4.3.50.0030.0305.77
4.3.40.0100.0375.76
4.3.30.0100.0374.85
4.3.20.0000.0274.85
4.3.10.0030.0234.85
4.3.00.0070.0207.32

preferences:
51.99 ms | 401 KiB | 5 Q