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>, qwe <a title="smth" 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('#<a (.+)((http:|https:)?//(www\.)?arrivo\.ru|/[^/])/(.+)\.html(.+)>#isU', '<a $1$2/$5$6>', $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.0040.01416.50
8.3.50.0110.01118.13
8.3.40.0120.00318.82
8.3.30.0090.00618.95
8.3.20.0040.00420.06
8.3.10.0040.00421.73
8.3.00.0080.00019.38
8.2.180.0120.00318.41
8.2.170.0090.00922.96
8.2.160.0070.00720.55
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0030.00519.79
8.2.110.0030.00720.98
8.2.100.0110.00017.88
8.2.90.0040.00419.15
8.2.80.0080.00017.97
8.2.70.0060.00617.71
8.2.60.0040.00418.04
8.2.50.0030.00618.07
8.2.40.0070.00018.16
8.2.30.0090.00018.18
8.2.20.0050.00217.83
8.2.10.0040.00418.09
8.2.00.0040.00417.94
8.1.280.0140.00325.92
8.1.270.0050.00320.65
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00324.02
8.1.230.0080.00319.07
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0060.00317.48
8.1.190.0000.00817.23
8.1.180.0070.00018.10
8.1.170.0030.00520.63
8.1.160.0030.00521.87
8.1.150.0000.00718.76
8.1.140.0070.00017.54
8.1.130.0050.00217.73
8.1.120.0050.00317.47
8.1.110.0040.00417.55
8.1.100.0070.00017.46
8.1.90.0000.00817.48
8.1.80.0000.00717.48
8.1.70.0030.00317.45
8.1.60.0080.00017.64
8.1.50.0030.00617.52
8.1.40.0040.00417.59
8.1.30.0050.00317.70
8.1.20.0080.00017.73
8.1.10.0040.00417.67
8.1.00.0040.00417.57
8.0.300.0050.00318.77
8.0.290.0040.00416.88
8.0.280.0000.00718.49
8.0.270.0000.00717.29
8.0.260.0030.00317.33
8.0.250.0030.00317.15
8.0.240.0030.00317.15
8.0.230.0040.00417.09
8.0.220.0030.00316.96
8.0.210.0050.00317.02
8.0.200.0030.00317.04
8.0.190.0040.00417.04
8.0.180.0040.00416.94
8.0.170.0000.00816.96
8.0.160.0040.00417.06
8.0.150.0000.00717.01
8.0.140.0050.00216.84
8.0.130.0030.00313.41
8.0.120.0000.00816.98
8.0.110.0000.00716.99
8.0.100.0000.00816.97
8.0.90.0030.00616.94
8.0.80.0080.00817.00
8.0.70.0030.00516.87
8.0.60.0000.00717.03
8.0.50.0030.00616.81
8.0.30.0110.01117.17
8.0.20.0080.01117.40
8.0.10.0020.00516.93
8.0.00.0120.00816.89
7.4.330.0050.00015.05
7.4.320.0040.00416.68
7.4.300.0030.00316.78
7.4.290.0050.00316.74
7.4.280.0000.00816.70
7.4.270.0070.00016.59
7.4.260.0000.00716.75
7.4.250.0000.00816.71
7.4.240.0000.00816.76
7.4.230.0040.00416.75
7.4.220.0160.00316.67
7.4.210.0040.01016.79
7.4.200.0000.00716.41
7.4.160.0070.01116.51
7.4.150.0070.01117.40
7.4.140.0110.00817.86
7.4.130.0140.00416.60
7.4.120.0090.00916.64
7.4.110.0110.00716.72
7.4.100.0110.00716.84
7.4.90.0160.00916.51
7.4.80.0080.01219.39
7.4.70.0110.00616.61
7.4.60.0100.00716.66
7.4.50.0000.00816.50
7.4.40.0080.00816.80
7.4.30.0110.00916.45
7.4.00.0120.00614.83
7.3.330.0000.00613.09
7.3.320.0120.00013.18
7.3.310.0030.00516.14
7.3.300.0030.00316.35
7.3.290.0000.00816.41
7.3.280.0140.00616.33
7.3.270.0100.00717.40
7.3.260.0170.00016.73
7.3.250.0080.00816.49
7.3.240.0100.00616.88
7.3.230.0130.01016.68
7.3.210.0030.01416.53
7.3.200.0070.01019.39
7.3.190.0060.01616.31
7.3.180.0130.00316.36
7.3.170.0090.00916.59
7.3.160.0100.00616.55
7.3.120.0090.00615.06
7.3.110.0030.01314.91
7.3.100.0030.01214.86
7.3.90.0060.00914.67
7.3.80.0070.00315.13
7.3.70.0090.00614.93
7.3.60.0000.01314.95
7.3.50.0030.01014.95
7.3.40.0060.00614.62
7.3.30.0080.00614.63
7.3.20.0060.00616.71
7.3.10.0030.01316.64
7.3.00.0100.00316.61
7.2.330.0090.00916.92
7.2.320.0040.01216.74
7.2.310.0140.00316.81
7.2.300.0090.00716.71
7.2.290.0160.00316.66
7.2.250.0130.00315.05
7.2.240.0130.00714.92
7.2.230.0080.00514.91
7.2.220.0000.01015.35
7.2.210.0080.00314.88
7.2.200.0060.00615.01
7.2.190.0000.01414.91
7.2.180.0100.00715.12
7.2.170.0070.00714.91
7.2.00.0090.00419.22
7.1.330.0000.01515.71
7.1.320.0090.00615.88
7.1.310.0030.00815.69
7.1.300.0060.00616.08
7.1.290.0100.00715.93
7.1.280.0070.00315.72
7.1.270.0100.00315.66
7.1.260.0100.00715.71
7.1.100.0000.01518.50
7.1.70.0050.00217.24
7.1.60.0040.02119.50
7.1.50.0070.01317.16
7.1.00.0030.07722.39
7.0.200.0000.00815.05
7.0.140.0000.07322.21
7.0.60.0000.05319.95
7.0.50.0070.06017.91
7.0.40.0030.06020.34
7.0.30.0230.04020.18
7.0.20.0270.05720.05
7.0.10.0300.06320.23
7.0.00.0030.08720.03
5.6.280.0070.06720.98
5.6.210.0070.07720.45
5.6.200.0130.08018.16
5.6.190.0100.04320.34
5.6.180.0300.07320.74
5.6.170.0470.07020.54
5.6.160.0070.05320.44
5.6.150.0030.08718.15
5.6.140.0100.07018.21
5.6.130.0170.06718.22
5.6.120.0230.04320.96
5.6.110.0130.07320.99
5.6.100.0030.08020.93
5.6.90.0100.07320.96
5.6.80.0230.05020.43
5.6.70.0170.04020.38
5.5.350.0100.07320.40
5.5.340.0200.04717.95
5.5.330.0100.08720.14
5.5.320.0130.04020.02
5.5.310.0300.07320.20
5.5.300.0100.07017.91
5.5.290.0030.04317.92
5.5.280.0030.04320.72
5.5.270.0100.04720.96
5.5.260.0070.08320.84
5.5.250.0070.08020.70
5.5.240.0130.06020.15
5.4.450.0030.07319.48
5.4.440.0030.07319.39
5.4.430.0070.06319.40
5.4.420.0070.07719.24
5.4.410.0030.05718.98
5.4.400.0100.05719.14
5.4.390.0070.07719.21
5.4.380.0000.08019.16
5.4.370.0030.04318.93
5.4.360.0030.07019.09
5.4.350.0070.06719.04
5.4.340.0070.05018.81
5.4.320.0000.08319.06
5.4.310.0030.08018.81
5.4.300.0000.07319.09
5.4.290.0070.04318.92
5.4.280.0000.08319.05
5.4.270.0000.08019.15
5.4.260.0070.04319.08
5.4.250.0030.06018.80
5.4.240.0100.06719.21
5.4.230.0000.06718.78
5.4.220.0000.06319.13
5.4.210.0130.06719.24
5.4.200.0030.07319.21
5.4.190.0070.04719.24
5.4.180.0000.06318.92
5.4.170.0000.08018.92
5.4.160.0030.07019.22
5.4.150.0100.05718.91
5.4.140.0100.04016.26
5.4.130.0030.07016.18
5.4.120.0000.06016.33
5.4.110.0030.07316.21
5.4.100.0070.03716.38
5.4.90.0000.03716.06
5.4.80.0000.03716.37
5.4.70.0000.03716.39
5.4.60.0000.07316.45
5.4.50.0070.04016.46
5.4.40.0070.04016.36
5.4.30.0000.04016.36
5.4.20.0100.06316.38
5.4.10.0000.04316.31
5.4.00.0070.03715.88
5.3.290.0030.08014.63
5.3.280.0070.07014.54
5.3.270.0100.07714.65
5.3.260.0000.07014.55
5.3.250.0030.05014.66
5.3.240.0070.07314.50
5.3.230.0000.07714.53
5.3.220.0000.04014.53
5.3.210.0030.06314.51
5.3.200.0030.07714.65
5.3.190.0030.08014.40
5.3.180.0030.03714.61
5.3.170.0030.05014.60
5.3.160.0000.08314.39
5.3.150.0000.07314.41
5.3.140.0030.08014.39
5.3.130.0030.04314.60
5.3.120.0000.04014.48
5.3.110.0030.03314.37
5.3.100.0000.03714.13
5.3.90.0000.03713.86
5.3.80.0030.07314.04
5.3.70.0000.05013.87
5.3.60.0070.03013.96
5.3.50.0030.04713.88
5.3.40.0000.07713.89
5.3.30.0030.07013.74
5.3.20.0070.06713.63
5.3.10.0030.07313.45
5.3.00.0000.07713.68
5.2.170.0000.03712.65
5.2.160.0070.05712.65
5.2.150.0070.03712.65
5.2.140.0030.04712.65
5.2.130.0000.04312.65
5.2.120.0030.05012.65
5.2.110.0000.04012.65
5.2.100.0030.05712.65
5.2.90.0000.04012.65
5.2.80.0030.05712.65
5.2.70.0030.04312.65
5.2.60.0000.03312.65
5.2.50.0030.06312.65
5.2.40.0000.06312.65
5.2.30.0030.04012.65
5.2.20.0000.05712.65
5.2.10.0070.05312.65
5.2.00.0030.06012.65
5.1.60.0070.04712.65
5.1.50.0030.04312.65
5.1.40.0030.04712.65
5.1.30.0000.05312.65
5.1.20.0000.04712.65
5.1.10.0030.03012.65
5.1.00.0070.05312.65
5.0.50.0000.04712.65
5.0.40.0030.03712.65
5.0.30.0000.06712.65
5.0.20.0000.03312.65
5.0.10.0000.04312.65
5.0.00.0000.06012.65
4.4.90.0000.02012.65
4.4.80.0070.01012.65
4.4.70.0030.01712.65
4.4.60.0100.02312.65
4.4.50.0000.03312.65
4.4.40.0000.05012.65
4.4.30.0000.03312.65
4.4.20.0130.02312.65
4.4.10.0000.03712.65
4.4.00.0000.04312.65
4.3.110.0000.03312.65
4.3.100.0000.03712.65
4.3.90.0000.02312.65
4.3.80.0000.04312.65
4.3.70.0030.02312.65
4.3.60.0070.02012.65
4.3.50.0000.02712.65
4.3.40.0000.03312.65
4.3.30.0030.02012.65
4.3.20.0000.03712.65
4.3.10.0070.03312.65
4.3.00.0030.03312.65

preferences:
41.28 ms | 400 KiB | 5 Q