3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'Dit is een link: <a href="bla.html">Tralalala</a>, en nog eentje: <a href="bla.html">Tralalala</a>'; $regexp = "<a\s[^>]*href=(\"??)([^\" >]*?)\\1[^>]*>(.*)<\/a>"; preg_match_all("/$regexp/siU", $string, $matches); // $matches[2] = array of link addresses // $matches[3] = array of link text - including HTML code echo "test"; print_r($matches); ?>

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.3.10.0180.00316.25
7.3.00.0150.00916.20
7.2.130.0150.00516.70
7.2.120.0170.00716.57
7.2.110.0170.00316.65
7.2.100.0140.00716.44
7.2.90.0090.00916.89
7.2.80.0090.01216.63
7.2.70.0120.01216.54
7.2.60.0150.00916.81
7.2.50.0130.00616.58
7.2.40.0170.00316.73
7.2.30.0150.00416.60
7.2.20.0090.00917.10
7.2.10.0060.01316.85
7.2.00.0120.00418.15
7.1.250.0160.00815.46
7.1.100.0000.01418.33
7.1.70.0000.00817.39
7.1.60.0110.01519.46
7.1.50.0170.01734.99
7.1.00.0100.07022.36
7.0.200.0030.01215.14
7.0.140.0130.06722.08
7.0.60.0130.07320.02
7.0.50.0100.08017.75
7.0.40.0170.07720.23
7.0.30.0300.03320.32
7.0.20.0130.04320.10
7.0.10.0170.08320.34
7.0.00.0070.08020.09
5.6.280.0100.06720.86
5.6.210.0030.05320.50
5.6.200.0100.07718.15
5.6.190.0000.08720.47
5.6.180.0400.07020.77
5.6.170.0300.07020.52
5.6.160.0070.04320.50
5.6.150.0070.03718.15
5.6.140.0100.07718.17
5.6.130.0030.08318.27
5.6.120.0030.06320.98
5.6.110.0070.07721.08
5.6.100.0030.07321.13
5.6.90.0100.08020.99
5.6.80.0070.06020.36
5.5.350.0170.08720.33
5.5.340.0000.06318.03
5.5.330.0130.07720.19
5.5.320.0300.04320.23
5.5.310.0300.07320.50
5.5.300.0070.06317.99
5.5.290.0000.04317.95
5.5.280.0070.08720.75
5.5.270.0070.06320.86
5.5.260.0070.07320.72
5.5.250.0130.08020.68
5.5.240.0000.05720.11
5.4.450.0570.07019.49
5.4.440.0670.06019.60
5.4.430.0100.05319.63
5.4.420.0030.06319.41
5.4.410.0170.04719.43
5.4.400.0600.06318.75
5.4.390.0500.06318.78
5.4.380.0470.06718.71
5.4.370.0330.05718.52
5.4.360.0330.06318.50
5.4.350.0430.05718.55
5.4.340.0330.06318.75
5.4.320.0370.05018.75
5.4.310.0430.08018.76
5.4.300.0470.07018.75
5.4.290.0300.06018.78
5.4.280.0200.07018.75
5.4.270.0400.05318.75
5.4.260.0230.06318.79
5.4.250.0370.07718.46
5.4.240.0270.05718.64
5.4.230.0430.07018.45
5.4.220.0430.07718.57
5.4.210.0530.07018.70
5.4.200.0400.07016.61
5.4.190.0530.05718.48
5.4.180.0370.07718.48
5.4.170.0330.06018.72
5.4.160.0530.07018.82
5.4.150.0330.07718.50
5.4.140.0400.06016.24
5.4.130.0270.06316.44
5.4.120.0470.06716.24
5.4.110.0530.05716.29
5.4.100.0330.04716.35
5.4.90.0230.05716.26
5.4.80.0230.05716.18
5.4.70.0270.06016.39
5.4.60.0470.03316.24
5.4.50.0530.06016.27
5.4.40.0470.05316.21
5.4.30.0400.07716.15
5.4.20.0400.05016.25
5.4.10.0400.05316.17
5.4.00.0330.05015.64
5.3.290.0330.05714.86
5.3.280.0300.05314.75
5.3.270.0330.06314.73
5.3.260.0330.08014.80
5.3.250.0500.04314.61
5.3.240.0270.06014.69
5.3.230.0470.05014.71
5.3.220.0330.05714.74
5.3.210.0170.06314.56
5.3.200.0370.04314.55
5.3.190.0330.05014.64
5.3.180.0200.05714.68
5.3.170.0270.06014.66
5.3.160.0170.06014.55
5.3.150.0170.06014.74
5.3.140.0400.06014.60
5.3.130.0330.05714.82
5.3.120.0300.06014.60
5.3.110.0230.06714.82
5.3.100.0400.05714.06
5.3.90.0500.06014.06
5.3.80.0400.04714.13
5.3.70.0230.05314.21
5.3.60.0230.05314.28
5.3.50.0270.05313.92
5.3.40.0230.05313.98
5.3.30.0270.05014.04
5.3.20.0200.05713.78
5.3.10.0300.05313.75
5.3.00.0170.06013.75
5.2.170.0270.05011.18
5.2.160.0330.04311.12
5.2.150.0330.03311.22
5.2.140.0270.05011.35
5.2.130.0300.04311.20
5.2.120.0230.05011.20
5.2.110.0170.05011.12
5.2.100.0230.04011.22
5.2.90.0170.04011.20
5.2.80.0170.05011.19
5.2.70.0270.04711.19
5.2.60.0230.03711.08
5.2.50.0170.06711.11
5.2.40.0200.05011.08
5.2.30.0170.05711.07
5.2.20.0130.06011.16
5.2.10.0270.05711.06
5.2.00.0230.05010.76
5.1.60.0230.04310.05
5.1.50.0200.0479.96
5.1.40.0200.04710.09
5.1.30.0200.04310.29
5.1.20.0130.04710.42
5.1.10.0130.03710.11
5.1.00.0170.04310.04
5.0.50.0100.0308.56
5.0.40.0100.0278.47
5.0.30.0100.0438.24
5.0.20.0000.0338.27
5.0.10.0000.0478.14
5.0.00.0100.0538.17
4.4.90.0100.0276.43
4.4.80.0100.0276.43
4.4.70.0070.0276.43
4.4.60.0070.0276.43
4.4.50.0130.0276.43
4.4.40.0030.0536.43
4.4.30.0130.0276.43
4.4.20.0000.0376.43
4.4.10.0030.0336.43
4.4.00.0000.0536.43
4.3.110.0100.0276.43
4.3.100.0230.0276.43
4.3.90.0000.0406.43
4.3.80.0130.0436.43
4.3.70.0130.0236.43
4.3.60.0030.0276.43
4.3.50.0030.0276.43
4.3.40.0070.0376.43
4.3.30.0000.0276.43
4.3.20.0070.0236.43
4.3.10.0000.0306.43
4.3.00.0070.0207.12