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 href="//arrivo.ru/w/sd/ger.html">123</a>, qwe <a href="http://yandex.ru/index.html">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.0070.01416.88
8.3.50.0110.00922.24
8.3.40.0070.00718.69
8.3.30.0140.00018.95
8.3.20.0050.00220.22
8.3.10.0000.00721.77
8.3.00.0080.00019.38
8.2.180.0070.01125.92
8.2.170.0070.00722.96
8.2.160.0070.00720.34
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.66
8.2.110.0090.00021.19
8.2.100.0090.00317.97
8.2.90.0060.00319.95
8.2.80.0030.00518.03
8.2.70.0060.00318.02
8.2.60.0050.00318.16
8.2.50.0000.00818.10
8.2.40.0000.00817.93
8.2.30.0090.00018.09
8.2.20.0030.00617.83
8.2.10.0080.00018.09
8.2.00.0050.00317.89
8.1.280.0080.00625.92
8.1.270.0000.00920.58
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.13
8.1.230.0100.00322.82
8.1.220.0040.00417.76
8.1.210.0030.00618.77
8.1.200.0060.00717.36
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0100.00020.58
8.1.160.0050.00222.11
8.1.150.0000.00818.88
8.1.140.0050.00217.54
8.1.130.0000.00717.79
8.1.120.0030.00517.55
8.1.110.0000.00717.47
8.1.100.0000.00817.42
8.1.90.0060.00317.44
8.1.80.0000.00717.52
8.1.70.0000.00717.47
8.1.60.0030.00617.68
8.1.50.0040.00417.65
8.1.40.0050.00317.58
8.1.30.0040.00417.75
8.1.20.0050.00317.68
8.1.10.0060.00317.65
8.1.00.0040.00417.55
8.0.300.0060.00321.65
8.0.290.0080.00016.85
8.0.280.0080.00018.39
8.0.270.0000.00717.30
8.0.260.0030.00317.16
8.0.250.0000.00716.97
8.0.240.0030.00317.19
8.0.230.0000.00716.94
8.0.220.0000.00816.85
8.0.210.0050.00316.94
8.0.200.0030.00316.91
8.0.190.0000.00716.94
8.0.180.0040.00416.92
8.0.170.0000.00716.85
8.0.160.0040.00416.94
8.0.150.0050.00216.92
8.0.140.0000.00816.85
8.0.130.0000.00613.38
8.0.120.0040.00416.94
8.0.110.0070.00016.98
8.0.100.0000.00816.94
8.0.90.0040.00416.89
8.0.80.0060.00916.96
8.0.70.0000.00716.81
8.0.60.0070.00017.01
8.0.50.0050.00316.97
8.0.30.0130.00817.31
8.0.20.0150.00817.40
8.0.10.0040.00417.17
8.0.00.0090.00816.88
7.4.330.0050.00015.03
7.4.320.0000.00716.60
7.4.300.0000.00716.75
7.4.290.0040.00416.74
7.4.280.0050.00316.73
7.4.270.0030.00316.78
7.4.260.0060.00316.73
7.4.250.0030.00316.64
7.4.240.0000.00816.78
7.4.230.0030.00316.53
7.4.220.0070.01316.73
7.4.210.0090.00916.75
7.4.200.0030.00316.67
7.4.160.0080.00816.63
7.4.150.0060.01117.40
7.4.140.0120.00917.86
7.4.130.0160.00316.74
7.4.120.0110.00816.66
7.4.110.0100.01316.64
7.4.100.0070.01016.50
7.4.90.0070.01116.80
7.4.80.0110.01119.39
7.4.70.0070.01016.76
7.4.60.0070.01316.67
7.4.50.0030.00616.45
7.4.40.0100.00716.61
7.4.30.0070.01716.64
7.4.00.0100.00715.23
7.3.330.0030.00313.19
7.3.320.0050.00713.09
7.3.310.0040.00416.37
7.3.300.0030.00316.20
7.3.290.0040.00416.39
7.3.280.0120.00716.38
7.3.270.0130.00717.40
7.3.260.0130.00616.54
7.3.250.0080.01116.51
7.3.240.0110.00716.34
7.3.230.0140.00416.44
7.3.210.0070.01016.58
7.3.200.0090.01319.39
7.3.190.0030.01316.54
7.3.180.0070.01016.37
7.3.170.0120.00616.61
7.3.160.0060.01116.39
7.2.330.0070.01416.64
7.2.320.0000.01716.51
7.2.310.0090.01016.68
7.2.300.0110.01116.61
7.2.290.0110.00916.76
7.2.80.0150.00516.74
7.2.60.0090.00216.94
7.2.00.0210.00519.19
7.1.200.0060.00615.95
7.1.100.0000.01118.17
7.1.70.0000.00817.08
7.1.60.0070.01719.50
7.1.50.0100.01317.20
7.1.00.0030.07722.54
7.0.200.0160.00415.08
7.0.140.0070.06021.90
7.0.60.0170.07319.79
7.0.50.0070.04017.86
7.0.40.0030.04720.30
7.0.30.0370.05320.06
7.0.20.0270.06020.11
7.0.10.0370.07020.11
7.0.00.0100.03720.19
5.6.280.0100.06721.12
5.6.210.0070.03720.67
5.6.200.0070.05018.22
5.6.190.0070.08720.48
5.6.180.0200.06320.65
5.6.170.0200.03720.44
5.6.160.0100.06020.32
5.6.150.0130.07318.10
5.6.140.0070.06018.18
5.6.130.0100.05718.13
5.6.120.0100.08321.04
5.6.110.0100.06020.95
5.6.100.0070.06321.02
5.6.90.0030.04021.13
5.6.80.0170.07720.34
5.6.70.0200.05320.46
5.5.350.0200.07720.46
5.5.340.0070.08018.02
5.5.330.0070.08320.06
5.5.320.0130.07020.29
5.5.310.0170.04720.27
5.5.300.0030.07717.91
5.5.290.0030.04017.95
5.5.280.0170.07720.89
5.5.270.0000.04720.75
5.5.260.0070.04020.82
5.5.250.0100.08020.77
5.5.240.0100.07720.18
5.4.450.0200.06719.22
5.4.440.0830.05719.30
5.4.430.0100.05319.25
5.4.420.1030.07019.24
5.4.410.0330.06719.35
5.4.400.0270.06018.64
5.4.390.0300.06318.61
5.4.380.0230.07318.46
5.4.370.0300.05718.71
5.4.360.0270.06018.54
5.4.350.0230.06318.67
5.4.340.0330.05318.49
5.4.320.0300.05718.58
5.4.310.0470.04718.52
5.4.300.0330.05018.70
5.4.290.0230.07018.71
5.4.280.0300.05318.71
5.4.270.0370.05018.52
5.4.260.0300.05318.66
5.4.250.0270.06018.75
5.4.240.0330.05718.63
5.4.230.0370.05018.60
5.4.220.0270.05718.59
5.4.210.0270.06018.59
5.4.200.0270.05716.45
5.4.190.0330.05018.45
5.4.180.0400.05718.59
5.4.170.0270.06318.70
5.4.160.0270.05318.50
5.4.150.0370.05018.50
5.4.140.0230.06016.23
5.4.130.0370.04316.31
5.4.120.0270.05316.04
5.4.110.0270.05316.19
5.4.100.0370.05316.16
5.4.90.0300.05016.34
5.4.80.0300.05316.13
5.4.70.0400.05016.08
5.4.60.0270.06016.26
5.4.50.0270.05016.19
5.4.40.0330.05016.29
5.4.30.0300.05016.31
5.4.20.0370.04716.09
5.4.10.0300.05016.13
5.4.00.0270.06315.61
5.3.290.0230.06714.73
5.3.280.0300.05314.50
5.3.270.0330.06714.53
5.3.260.0330.05714.70
5.3.250.0270.06714.58
5.3.240.0400.06014.51
5.3.230.0330.06714.74
5.3.220.0430.04314.63
5.3.210.0330.05314.51
5.3.200.0300.05314.66
5.3.190.0300.05314.51
5.3.180.0270.05314.55
5.3.170.0230.06314.56
5.3.160.0230.05714.54
5.3.150.0370.07014.61
5.3.140.0400.04314.59
5.3.130.0330.05314.53
5.3.120.0270.06014.49
5.3.110.0170.06714.57
5.3.100.0330.05714.11
5.3.90.0270.06013.97
5.3.80.0370.05014.11
5.3.70.0270.05714.17
5.3.60.0270.05313.96
5.3.50.0400.04013.88
5.3.40.0400.05013.98
5.3.30.0370.04713.87
5.3.20.0330.06013.67
5.3.10.0370.04313.65
5.3.00.0200.06013.66
5.2.170.0270.04011.09
5.2.160.0200.04311.18
5.2.150.0230.04311.18
5.2.140.0200.04711.11
5.2.130.0300.04011.03
5.2.120.0230.04311.15
5.2.110.0300.04711.24
5.2.100.0370.05011.08
5.2.90.0270.03711.32
5.2.80.0170.05711.30
5.2.70.0470.03311.11
5.2.60.0370.04711.11
5.2.50.0200.04710.93
5.2.40.0330.03711.06
5.2.30.0200.05010.93
5.2.20.0270.04310.95
5.2.10.0200.04310.95
5.2.00.0230.04310.68
5.1.60.0230.04010.13
5.1.50.0170.04310.06
5.1.40.0200.05310.01
5.1.30.0230.03010.31
5.1.20.0270.03710.35
5.1.10.0170.04710.16
5.1.00.0130.04310.12
5.0.50.0100.0338.54
5.0.40.0130.0278.43
5.0.30.0130.0478.29
5.0.20.0100.0278.23
5.0.10.0130.0238.28
5.0.00.0030.0478.17
4.4.90.0130.0275.87
4.4.80.0100.0275.89
4.4.70.0170.0135.91
4.4.60.0100.0205.89
4.4.50.0030.0275.88
4.4.40.0070.0375.90
4.4.30.0100.0235.90
4.4.20.0100.0235.90
4.4.10.0070.0235.96
4.4.00.0070.0375.95
4.3.110.0030.0275.86
4.3.100.0100.0235.80
4.3.90.0130.0175.88
4.3.80.0070.0375.89
4.3.70.0030.0275.78
4.3.60.0200.0135.87
4.3.50.0070.0275.78
4.3.40.0100.0305.74
4.3.30.0100.0174.88
4.3.20.0030.0234.88
4.3.10.0030.0234.88
4.3.00.0500.0277.32

preferences:
43.12 ms | 401 KiB | 5 Q