3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.60.0120.00316.74
7.2.00.0080.01619.12
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