3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = "<a href='http://demowww.wavebid.com/content/openPdfFile.html?id=7828114'> <img src=\"http://www.wavebid.com/images/icons/pdf-128x128.jpg\" style=\"height: 25px\"/>IPv4_Multicast.pdf</a> <br /> <a href='http://demowww.wavebid.com/content/openPdfFile.html?id=7828115'> <img src=\"http://www.wavebid.com/images/icons/pdf-128x128.jpg\" style=\"height: 25px\"/>IPv6.pdf</a><br />"; $dom = new DOMDocument; $dom->loadHTML($foo); $links = $dom->getElementsByTagName('a'); var_dump($$links);

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.0040.00816.66
7.2.00.0040.01419.72
7.1.200.0060.00615.88
7.1.100.0070.00718.23
7.1.70.0090.00017.27
7.1.60.0080.00819.21
7.1.50.0250.01434.52
7.1.00.0000.06322.41
7.0.200.0170.00314.97
7.0.140.0030.07322.11
7.0.60.0100.07719.85
7.0.50.0100.08017.97
7.0.40.0000.05020.12
7.0.30.0130.04720.23
7.0.20.0200.09020.24
7.0.10.0070.04020.25
7.0.00.0030.06020.24
5.6.210.0030.04020.74
5.6.200.0100.08318.20
5.6.190.0100.04320.48
5.6.180.0400.04020.47
5.6.170.0330.05720.60
5.6.160.0100.06720.56
5.6.150.0070.08318.23
5.6.140.0070.08318.25
5.6.130.0100.07718.24
5.6.120.0100.05020.94
5.6.110.0000.04321.18
5.6.100.0170.04721.17
5.6.90.0130.07721.14
5.6.80.0100.07320.42
5.5.350.0200.06720.50
5.5.340.0130.06717.98
5.5.330.0100.08320.36
5.5.320.0200.06020.27
5.5.310.0300.05720.43
5.5.300.0030.08318.03
5.5.290.0100.05018.10
5.5.280.0100.04720.98
5.5.270.0170.07720.93
5.5.260.0330.06320.91
5.5.250.0030.05320.76
5.5.240.0000.03720.23
5.4.450.0500.05319.68
5.4.440.0900.07019.68
5.4.430.0200.04719.39
5.4.420.0230.05719.37
5.4.410.0070.05318.87
5.4.400.0130.05318.57
5.4.390.0170.05318.76
5.4.380.0070.05718.80
5.4.370.0070.05718.80
5.4.360.0230.04318.77
5.4.350.0070.04412.13
5.4.340.0040.03912.13
5.4.320.0030.03812.61
5.4.310.0040.04612.60
5.4.300.0060.03512.61
5.4.290.0040.04012.61
5.4.280.0040.04012.51
5.4.270.0060.03712.50
5.4.260.0010.04212.50
5.4.250.0070.05019.01
5.4.240.0070.05319.07
5.4.230.0030.06019.01
5.4.220.0200.06719.16
5.4.210.0100.08018.95
5.4.200.0100.05018.88
5.4.190.0030.05318.77
5.4.180.0130.07718.88
5.4.170.0270.05719.00
5.4.160.0070.08318.90
5.4.150.0170.07019.06
5.4.140.0070.05016.43
5.4.130.0100.05016.56
5.4.120.0030.05316.36
5.4.110.0130.07016.41
5.4.100.0000.05716.41
5.4.90.0100.04716.32
5.4.80.0030.05316.58
5.4.70.0130.04016.53
5.4.60.0030.05316.62
5.4.50.0030.05016.53
5.4.40.0000.05316.49
5.4.30.0100.06016.60
5.4.20.0100.05716.48
5.4.10.0130.06316.62
5.4.00.0130.04715.80
5.3.290.0050.03912.88
5.3.280.0130.07014.68
5.3.270.0170.04714.70
5.3.260.0130.07014.83
5.3.250.0070.05014.52
5.3.240.0070.05314.70
5.3.230.0030.05314.56
5.3.220.0070.05314.79
5.3.210.0070.05314.39
5.3.200.0170.05714.51
5.3.190.0000.06014.51
5.3.180.0030.05314.66
5.3.170.0070.05014.47
5.3.160.0030.05714.47
5.3.150.0100.05014.40
5.3.140.0100.05014.46
5.3.130.0030.05714.64
5.3.120.0030.05714.64
5.3.110.0130.04314.49
5.3.100.0070.05014.19
5.3.90.0100.04714.01
5.3.80.0100.05313.96
5.3.70.0070.05014.01
5.3.60.0130.04013.91
5.3.50.0030.05014.04
5.3.40.0070.05714.04
5.3.30.0070.04714.13
5.3.20.0100.05313.78
5.3.10.0100.04713.87
5.3.00.0030.05313.70
5.2.170.0030.04311.28
5.2.160.0070.04011.16
5.2.150.0130.03311.11
5.2.140.0030.04711.11
5.2.130.0030.04011.32
5.2.120.0070.04011.28
5.2.110.0100.03311.14
5.2.100.0100.05011.09
5.2.90.0130.04711.23
5.2.80.0100.03711.23
5.2.70.0030.06311.26
5.2.60.0000.05311.27
5.2.50.0070.04011.09
5.2.40.0030.04311.09
5.2.30.0100.04311.02
5.2.20.0000.04011.04
5.2.10.0130.03010.86
5.2.00.0030.04010.85
5.1.60.0030.03310.00
5.1.50.0070.03710.30
5.1.40.0070.03710.03
5.1.30.0030.03710.33
5.1.20.0030.03710.48
5.1.10.0070.03310.22
5.1.00.0000.04010.21
5.0.50.0030.0278.44
5.0.40.0130.0308.71
5.0.30.0170.0438.38
5.0.20.0130.0178.22
5.0.10.0000.0308.29
5.0.00.0070.0508.38
4.4.90.0070.0177.39
4.4.80.0000.0237.39
4.4.70.0070.0177.39
4.4.60.0030.0207.39
4.4.50.0070.0177.39
4.4.40.0030.0377.39
4.4.30.0070.0177.39
4.4.20.0030.0207.39
4.4.10.0070.0177.39
4.4.00.0000.0377.39
4.3.110.0000.0277.39
4.3.100.0070.0177.39
4.3.90.0030.0207.39
4.3.80.0030.0307.39
4.3.70.0030.0237.39
4.3.60.0030.0177.39
4.3.50.0030.0207.39
4.3.40.0030.0337.39
4.3.30.0030.0237.39
4.3.20.0070.0177.39
4.3.10.0070.0177.39
4.3.00.0000.0236.60