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(.+)(>| |"|\')#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.0070.01416.86
8.3.50.0120.00722.03
8.3.40.0110.00419.14
8.3.30.0110.00419.05
8.3.20.0040.00420.35
8.3.10.0000.00821.63
8.3.00.0060.00319.40
8.2.180.0070.00718.41
8.2.170.0110.00722.96
8.2.160.0040.01120.39
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0080.00019.79
8.2.110.0000.00820.35
8.2.100.0120.00017.84
8.2.90.0040.00418.89
8.2.80.0000.00817.97
8.2.70.0050.00317.88
8.2.60.0000.00817.88
8.2.50.0000.00918.07
8.2.40.0000.00818.28
8.2.30.0000.00718.10
8.2.20.0000.00817.93
8.2.10.0040.00418.20
8.2.00.0080.00017.91
8.1.280.0110.00425.92
8.1.270.0090.00020.65
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0040.00722.04
8.1.230.0000.01120.90
8.1.220.0030.00617.78
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0030.00517.35
8.1.180.0000.00918.10
8.1.170.0160.00418.34
8.1.160.0030.00521.89
8.1.150.0050.00218.88
8.1.140.0030.00517.44
8.1.130.0000.00717.80
8.1.120.0050.00217.54
8.1.110.0050.00317.46
8.1.100.0040.00417.45
8.1.90.0000.00717.48
8.1.80.0080.00017.54
8.1.70.0030.00317.56
8.1.60.0040.00417.69
8.1.50.0040.00417.64
8.1.40.0000.00817.60
8.1.30.0040.00417.66
8.1.20.0080.00017.83
8.1.10.0000.00817.59
8.1.00.0040.00417.66
8.0.300.0030.00618.77
8.0.290.0040.00416.88
8.0.280.0050.00318.49
8.0.270.0030.00317.27
8.0.260.0000.00817.30
8.0.250.0000.00717.02
8.0.240.0000.00617.15
8.0.230.0030.00317.07
8.0.220.0030.00516.99
8.0.210.0030.00316.98
8.0.200.0030.00317.04
8.0.190.0060.00217.00
8.0.180.0000.00817.06
8.0.170.0040.00417.04
8.0.160.0000.00716.94
8.0.150.0070.00016.93
8.0.140.0000.00816.92
8.0.130.0000.00813.46
8.0.120.0000.00716.89
8.0.110.0040.00417.02
8.0.100.0040.00416.98
8.0.90.0040.00416.99
8.0.80.0160.00716.95
8.0.70.0000.00816.86
8.0.60.0000.00717.08
8.0.50.0030.00516.88
8.0.30.0110.01217.22
8.0.20.0130.00817.45
8.0.10.0040.00416.95
8.0.00.0060.01216.77
7.4.330.0030.00315.03
7.4.320.0040.00416.67
7.4.300.0060.00016.68
7.4.290.0070.00016.59
7.4.280.0030.00516.75
7.4.270.0050.00316.78
7.4.260.0000.00816.77
7.4.250.0040.00416.64
7.4.240.0020.00616.72
7.4.230.0070.00016.83
7.4.220.0120.00916.61
7.4.210.0050.00916.73
7.4.200.0040.00416.57
7.4.160.0080.00816.57
7.4.150.0120.00617.40
7.4.140.0050.01517.86
7.4.130.0110.00716.59
7.4.120.0110.01016.69
7.4.110.0140.00716.78
7.4.100.0100.00716.77
7.4.90.0090.00916.66
7.4.80.0110.00619.39
7.4.70.0100.00716.65
7.4.60.0130.00316.88
7.4.50.0040.00016.67
7.4.40.0100.00616.68
7.4.30.0080.01116.66
7.4.00.0030.01014.77
7.3.330.0030.00313.09
7.3.320.0090.00513.27
7.3.310.0000.00716.24
7.3.300.0000.00716.36
7.3.290.0030.00316.22
7.3.280.0090.01016.37
7.3.270.0070.01117.40
7.3.260.0120.00516.47
7.3.250.0080.01016.53
7.3.240.0100.00716.57
7.3.230.0130.00916.39
7.3.210.0130.00716.33
7.3.200.0130.00419.39
7.3.190.0190.01316.84
7.3.180.0080.00816.27
7.3.170.0050.01116.77
7.3.160.0070.01116.61
7.2.330.0150.00316.52
7.2.320.0070.01016.57
7.2.310.0050.01616.60
7.2.300.0070.01016.75
7.2.290.0090.00916.63
7.2.80.0030.00916.47
7.2.60.0130.00616.80
7.2.00.0160.00719.05
7.1.200.0070.00715.91
7.1.100.0000.01118.03
7.1.70.0050.00217.25
7.1.60.0140.01119.50
7.1.50.0120.00617.11
7.1.00.0000.08022.47
7.0.200.0070.00414.84
7.0.140.0000.03721.95
7.0.60.0100.07019.96
7.0.50.0070.07317.86
7.0.40.0100.06720.29
7.0.30.0300.07020.33
7.0.20.0270.06020.06
7.0.10.0370.08020.15
7.0.00.0100.03720.11
5.6.280.0000.07720.89
5.6.210.0000.04720.61
5.6.200.0100.07718.14
5.6.190.0100.07320.41
5.6.180.0170.08720.29
5.6.170.0130.04320.61
5.6.160.0030.07020.38
5.6.150.0070.07018.08
5.6.140.0070.07318.18
5.6.130.0170.07018.11
5.6.120.0070.05320.97
5.6.110.0000.07720.97
5.6.100.0070.04020.98
5.6.90.0070.03720.97
5.6.80.0270.06720.53
5.6.70.0130.07720.46
5.5.350.0200.07320.32
5.5.340.0130.06317.96
5.5.330.0100.08320.06
5.5.320.0130.08020.57
5.5.310.0130.04320.24
5.5.300.0070.07318.00
5.5.290.0030.05317.91
5.5.280.0070.07720.86
5.5.270.0130.04020.76
5.5.260.0070.03720.86
5.5.250.0030.06720.70
5.5.240.0100.04320.35
5.4.450.0830.06719.56
5.4.440.1170.08019.64
5.4.430.0730.08019.09
5.4.420.1030.04719.63
5.4.410.0930.05719.35
5.4.400.0370.06018.80
5.4.390.0330.06018.64
5.4.380.0500.05018.82
5.4.370.0330.06018.61
5.4.360.0370.06318.61
5.4.350.0370.06018.64
5.4.340.0370.05018.71
5.4.320.0370.06018.61
5.4.310.0470.06318.46
5.4.300.0330.06318.77
5.4.290.0470.04718.73
5.4.280.0530.04018.48
5.4.270.0400.05018.66
5.4.260.0530.05718.48
5.4.250.0400.05018.67
5.4.240.0470.05318.58
5.4.230.0230.06318.63
5.4.220.0370.06318.66
5.4.210.0330.06718.48
5.4.200.0470.06316.48
5.4.190.0270.06318.59
5.4.180.0400.07318.59
5.4.170.0300.06318.69
5.4.160.0300.05718.54
5.4.150.0400.07018.59
5.4.140.0530.05016.27
5.4.130.0270.05316.22
5.4.120.0270.05716.20
5.4.110.0430.06316.30
5.4.100.0330.05316.22
5.4.90.0500.06016.15
5.4.80.0370.05316.03
5.4.70.0270.06016.19
5.4.60.0470.06016.13
5.4.50.0400.06016.13
5.4.40.0400.04716.18
5.4.30.0370.05316.18
5.4.20.0430.06316.29
5.4.10.0330.06016.26
5.4.00.0270.05715.64
5.3.290.0300.06714.57
5.3.280.0370.06014.58
5.3.270.0370.06014.58
5.3.260.0400.04714.63
5.3.250.0470.05314.48
5.3.240.0400.07014.59
5.3.230.0370.06314.50
5.3.220.0370.06014.64
5.3.210.0330.05714.72
5.3.200.0300.05714.48
5.3.190.0300.06014.63
5.3.180.0370.04714.63
5.3.170.0270.05714.72
5.3.160.0300.05714.55
5.3.150.0330.06014.48
5.3.140.0430.06714.50
5.3.130.0300.06714.64
5.3.120.0400.07014.50
5.3.110.0330.07714.46
5.3.100.0370.07014.07
5.3.90.0470.05014.00
5.3.80.0370.05313.96
5.3.70.0370.05314.01
5.3.60.0300.06713.95
5.3.50.0300.06013.87
5.3.40.0330.06313.93
5.3.30.0470.04713.91
5.3.20.0370.05313.79
5.3.10.0470.04313.68
5.3.00.0570.04713.64
5.2.170.0300.05011.21
5.2.160.0270.04011.11
5.2.150.0400.03711.20
5.2.140.0370.05711.16
5.2.130.0200.05711.14
5.2.120.0230.04711.03
5.2.110.0230.04711.07
5.2.100.0270.06011.16
5.2.90.0330.05011.09
5.2.80.0400.05711.13
5.2.70.0270.06311.16
5.2.60.0270.05711.10
5.2.50.0330.04711.05
5.2.40.0270.04311.00
5.2.30.0100.06710.95
5.2.20.0370.04311.00
5.2.10.0230.04010.83
5.2.00.0200.04310.77
5.1.60.0270.0409.98
5.1.50.0170.04310.18
5.1.40.0200.04710.02
5.1.30.0200.05010.40
5.1.20.0370.03310.34
5.1.10.0330.04310.04
5.1.00.0170.05710.18
5.0.50.0070.0478.57
5.0.40.0100.0308.59
5.0.30.0130.0478.29
5.0.20.0170.0278.23
5.0.10.0200.0408.27
5.0.00.0070.0478.19
4.4.90.0030.0305.83
4.4.80.0100.0275.92
4.4.70.0170.0275.92
4.4.60.0130.0205.91
4.4.50.0070.0335.92
4.4.40.0100.0375.89
4.4.30.0070.0275.91
4.4.20.0100.0305.98
4.4.10.0130.0305.98
4.4.00.0030.0405.92
4.3.110.0030.0305.81
4.3.100.0100.0205.82
4.3.90.0070.0275.87
4.3.80.0130.0335.79
4.3.70.0100.0205.82
4.3.60.0130.0175.87
4.3.50.0070.0405.80
4.3.40.0100.0375.84
4.3.30.0130.0274.85
4.3.20.0070.0304.85
4.3.10.0030.0334.85
4.3.00.0100.0277.32

preferences:
54.56 ms | 401 KiB | 5 Q