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/$3$4', $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.0060.01216.63
8.3.50.0100.01122.14
8.3.40.0120.00319.02
8.3.30.0040.01118.84
8.3.20.0000.00720.19
8.3.10.0040.00421.95
8.3.00.0040.00419.38
8.2.180.0150.00316.63
8.2.170.0070.01022.96
8.2.160.0140.00020.39
8.2.150.0090.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0050.00319.67
8.2.110.0030.00619.10
8.2.100.0060.00617.63
8.2.90.0000.00819.28
8.2.80.0090.00017.97
8.2.70.0000.01017.63
8.2.60.0090.00017.93
8.2.50.0090.00018.07
8.2.40.0080.00018.22
8.2.30.0030.00618.08
8.2.20.0040.00417.69
8.2.10.0040.00418.16
8.2.00.0040.00417.78
8.1.280.0170.00325.92
8.1.270.0000.00820.53
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0090.00021.29
8.1.230.0040.00718.91
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0080.00017.36
8.1.190.0040.00417.35
8.1.180.0040.00818.10
8.1.170.0030.00620.49
8.1.160.0040.00422.05
8.1.150.0000.00718.80
8.1.140.0080.00017.50
8.1.130.0080.00017.61
8.1.120.0000.00717.53
8.1.110.0000.00717.55
8.1.100.0050.00217.58
8.1.90.0000.00717.61
8.1.80.0080.00017.55
8.1.70.0000.00717.53
8.1.60.0040.00417.69
8.1.50.0050.00317.61
8.1.40.0030.00517.62
8.1.30.0060.00317.64
8.1.20.0080.00017.66
8.1.10.0080.00017.50
8.1.00.0000.00717.39
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0000.00718.40
8.0.270.0070.00017.29
8.0.260.0070.00016.98
8.0.250.0000.00716.97
8.0.240.0000.00616.94
8.0.230.0000.00717.11
8.0.220.0000.00716.98
8.0.210.0000.00716.90
8.0.200.0000.00617.08
8.0.190.0000.00816.91
8.0.180.0030.00516.98
8.0.170.0080.00016.96
8.0.160.0080.00017.10
8.0.150.0040.00416.92
8.0.140.0040.00416.93
8.0.130.0030.00313.38
8.0.120.0050.00217.00
8.0.110.0040.00416.93
8.0.100.0030.00616.89
8.0.90.0000.00816.86
8.0.80.0110.01116.95
8.0.70.0000.00717.05
8.0.60.0000.00716.89
8.0.50.0030.00516.89
8.0.30.0100.01117.22
8.0.20.0050.01417.43
8.0.10.0000.00717.17
8.0.00.0070.01016.81
7.4.330.0000.00515.03
7.4.320.0050.00316.76
7.4.300.0030.00316.80
7.4.290.0040.00416.59
7.4.280.0000.00816.54
7.4.270.0070.00016.77
7.4.260.0010.01116.76
7.4.250.0000.00716.53
7.4.240.0000.00816.69
7.4.230.0070.00016.87
7.4.220.0150.00616.77
7.4.210.0080.00816.68
7.4.200.0070.00016.66
7.4.160.0100.00616.46
7.4.150.0120.01217.40
7.4.140.0120.00717.86
7.4.130.0100.00716.54
7.4.120.0090.00916.72
7.4.110.0030.01416.61
7.4.100.0080.00816.74
7.4.90.0120.00916.62
7.4.80.0140.01019.39
7.4.70.0060.00916.67
7.4.60.0100.00716.61
7.4.50.0070.00016.52
7.4.40.0120.00416.69
7.4.30.0120.00916.62
7.4.00.0030.01014.94
7.3.330.0030.00313.20
7.3.320.0130.00013.23
7.3.310.0050.00216.16
7.3.300.0070.00016.34
7.3.290.0060.01116.28
7.3.280.0130.00716.28
7.3.270.0060.01617.40
7.3.260.0160.00716.50
7.3.250.0060.01216.43
7.3.240.0030.01716.61
7.3.230.0100.00916.39
7.3.210.0080.00816.36
7.3.200.0100.00719.39
7.3.190.0070.01016.75
7.3.180.0060.00916.53
7.3.170.0130.00616.27
7.3.160.0130.00316.64
7.3.120.0030.01314.90
7.3.110.0040.01414.67
7.3.100.0030.01214.80
7.3.90.0030.01114.68
7.3.80.0080.00814.77
7.3.70.0110.00414.79
7.3.60.0030.00614.95
7.3.50.0030.00614.66
7.3.40.0070.00314.86
7.3.30.0000.01314.66
7.3.20.0130.00316.88
7.3.10.0100.00316.71
7.3.00.0060.00816.69
7.2.330.0090.01516.59
7.2.320.0090.00916.72
7.2.310.0030.01716.77
7.2.300.0070.01016.52
7.2.290.0120.01316.61
7.2.250.0070.01015.04
7.2.240.0110.00715.27
7.2.230.0030.00715.07
7.2.220.0040.00714.77
7.2.210.0120.00615.16
7.2.200.0030.00615.23
7.2.190.0070.00715.04
7.2.180.0070.00715.02
7.2.170.0070.00715.21
7.2.60.0120.00316.74
7.2.00.0080.01619.12
7.1.330.0070.01115.95
7.1.320.0050.00815.69
7.1.310.0090.00015.95
7.1.300.0030.01015.87
7.1.290.0030.01015.72
7.1.280.0040.01115.86
7.1.270.0030.01016.10
7.1.260.0020.01315.87
7.1.200.0150.00015.82
7.1.100.0040.00718.30
7.1.70.0040.00417.43
7.1.60.0090.01619.50
7.1.50.0210.00317.09
7.1.00.0070.07322.45
7.0.200.0070.00716.84
7.0.140.0100.06722.16
7.0.60.0170.04719.94
7.0.50.0130.06017.78
7.0.40.0200.07719.92
7.0.30.0270.05720.11
7.0.20.0270.04320.02
7.0.10.0330.07720.22
7.0.00.0100.04720.14
5.6.280.0030.07320.85
5.6.210.0030.04020.68
5.6.200.0230.05018.16
5.6.190.0030.08720.27
5.6.180.0230.05320.44
5.6.170.0130.04720.49
5.6.160.0170.07320.75
5.6.150.0000.08718.11
5.6.140.0000.08318.18
5.6.130.0070.07718.20
5.6.120.0000.06321.13
5.6.110.0100.08021.13
5.6.100.0070.07320.96
5.6.90.0000.04720.99
5.6.80.0300.05020.33
5.6.70.0170.05320.39
5.5.350.0100.08320.34
5.5.340.0030.08717.98
5.5.330.0070.07320.57
5.5.320.0200.07720.44
5.5.310.0330.07020.17
5.5.300.0070.05018.01
5.5.290.0000.04317.87
5.5.280.0070.07020.86
5.5.270.0070.05020.78
5.5.260.0100.04720.76
5.5.250.0170.07720.68
5.5.240.0130.08020.36
5.4.450.0070.06319.63
5.4.440.0800.06719.10
5.4.430.0200.05019.61
5.4.420.0770.06319.54
5.4.410.0030.06019.19
5.4.400.0330.05718.51
5.4.390.0370.06718.56
5.4.380.0270.08018.74
5.4.370.0400.06318.52
5.4.360.0270.07718.68
5.4.350.0470.06718.50
5.4.340.0370.07018.57
5.4.320.0630.06018.62
5.4.310.0370.08018.67
5.4.300.0570.06018.77
5.4.290.0470.05318.61
5.4.280.0470.06018.52
5.4.270.0370.08318.49
5.4.260.0430.06018.52
5.4.250.0370.06018.67
5.4.240.0530.05318.72
5.4.230.0370.06718.58
5.4.220.0270.06318.73
5.4.210.0330.06318.55
5.4.200.0300.06016.51
5.4.190.0370.08018.62
5.4.180.0300.06018.69
5.4.170.0470.07018.60
5.4.160.0470.05318.67
5.4.150.0470.06318.67
5.4.140.0330.05716.27
5.4.130.0470.04716.16
5.4.120.0370.04716.20
5.4.110.0400.06716.19
5.4.100.0330.05316.22
5.4.90.0370.06016.25
5.4.80.0470.07716.11
5.4.70.0530.06016.13
5.4.60.0470.06316.27
5.4.50.0570.05016.27
5.4.40.0530.05016.27
5.4.30.0470.04716.31
5.4.20.0500.06016.28
5.4.10.0400.06316.32
5.4.00.0370.06015.75
5.3.290.0330.05714.57
5.3.280.0470.06014.57
5.3.270.0400.04714.51
5.3.260.0270.08014.51
5.3.250.0530.06714.64
5.3.240.0300.06314.75
5.3.230.0430.04714.52
5.3.220.0370.05014.52
5.3.210.0570.05714.61
5.3.200.0530.06014.49
5.3.190.0370.05714.54
5.3.180.0370.07714.55
5.3.170.0470.06014.64
5.3.160.0530.04014.65
5.3.150.0470.05014.47
5.3.140.0330.07314.46
5.3.130.0370.07314.54
5.3.120.0530.06714.55
5.3.110.0370.05714.62
5.3.100.0300.06313.96
5.3.90.0400.05313.99
5.3.80.0430.04314.00
5.3.70.0370.06013.95
5.3.60.0330.07014.00
5.3.50.0330.06713.90
5.3.40.0370.06013.89
5.3.30.0070.05314.00
5.3.20.1200.07013.76
5.3.10.0470.07713.63
5.3.00.0470.07713.74
5.2.170.0300.04311.21
5.2.160.0330.04711.07
5.2.150.0270.05011.19
5.2.140.0330.04311.13
5.2.130.0630.04711.07
5.2.120.0370.04311.09
5.2.110.0400.04011.05
5.2.100.0270.04711.13
5.2.90.0330.04011.24
5.2.80.0330.04711.01
5.2.70.0300.04011.14
5.2.60.0330.04011.07
5.2.50.0470.05311.00
5.2.40.0430.04010.96
5.2.30.0230.04311.13
5.2.20.0270.05310.93
5.2.10.0330.04710.97
5.2.00.0100.04710.70
5.1.60.0170.0439.98
5.1.50.0100.0439.97
5.1.40.0230.03310.16
5.1.30.0400.03710.44
5.1.20.0300.04010.41
5.1.10.0270.04310.06
5.1.00.0270.04710.09
5.0.50.0130.0408.57
5.0.40.0200.0278.59
5.0.30.0130.0438.36
5.0.20.0130.0308.26
5.0.10.0370.0238.18
5.0.00.0130.0538.19
4.4.90.0100.0275.87
4.4.80.0200.0235.90
4.4.70.0100.0205.82
4.4.60.0130.0205.93
4.4.50.0230.0235.91
4.4.40.0170.0475.92
4.4.30.0170.0305.91
4.4.20.0130.0235.96
4.4.10.0200.0275.96
4.4.00.0100.0405.94
4.3.110.0200.0175.83
4.3.100.0270.0175.79
4.3.90.0100.0305.87
4.3.80.0200.0335.91
4.3.70.0170.0275.79
4.3.60.0100.0235.86
4.3.50.0100.0305.88
4.3.40.0270.0305.82
4.3.30.0030.0234.88
4.3.20.0070.0274.88
4.3.10.0170.0204.88
4.3.00.0030.0207.32

preferences:
33.88 ms | 401 KiB | 5 Q