3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = new DOMDocument(); $html->loadHTML('<td valign="middle"><img src="http://example.net/email_images/social-facebook.jpg" alt="" border="0" /></td>'); //foreach($html as $node) { //print_r($html); //print_r($html->firstChild); //print_r($html->lastChild); print_r($html->getElementsByTagName('a'); //}

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)
5.4.370.0100.03318.63
5.4.360.0130.03018.60
5.4.350.0100.04018.79
5.4.340.0070.04018.63
5.4.320.0100.04018.79
5.4.310.0000.04318.74
5.4.300.0000.04318.51
5.4.290.0130.03718.75
5.4.280.0100.03718.81
5.4.270.0100.03718.76
5.4.260.0070.03718.68
5.4.250.0030.05318.62
5.4.240.0130.03718.50
5.4.230.0200.05018.57
5.4.220.0170.05318.46
5.4.210.0200.04318.75
5.4.200.0130.04016.76
5.4.190.0200.04318.74
5.4.180.0070.04018.54
5.4.170.0070.04718.72
5.4.160.0130.05018.72
5.4.150.0130.03318.56
5.4.140.0100.05016.27
5.4.130.0100.03316.20
5.4.120.0170.02716.42
5.4.110.0100.03316.23
5.4.100.0070.03716.45
5.4.90.0070.04016.41
5.4.80.0030.04316.21
5.4.70.0100.04016.24
5.4.60.0100.03316.15
5.4.50.0200.03016.22
5.4.40.0170.04016.20
5.4.30.0200.03316.22
5.4.20.0200.03716.29
5.4.10.0070.04016.25
5.4.00.0030.04015.86
5.3.290.0100.03714.68
5.3.280.0070.04014.62
5.3.270.0100.04014.61
5.3.260.0100.04014.65
5.3.250.0170.03014.46
5.3.240.0100.03714.51
5.3.230.0030.04314.62
5.3.220.0070.04014.46
5.3.210.0170.03314.48
5.3.200.0070.04014.48
5.3.190.0170.03014.46
5.3.180.0070.04314.52
5.3.170.0070.04014.45
5.3.160.0130.04714.62
5.3.150.0100.03714.57
5.3.140.0030.04314.59
5.3.130.0070.05014.57
5.3.120.0270.04314.40
5.3.110.0130.04714.46
5.3.100.0170.05014.01
5.3.90.0030.05013.93
5.3.80.0170.03314.05
5.3.70.0070.04014.05
5.3.60.0070.04013.93
5.3.50.0070.04313.96
5.3.40.0100.05013.89
5.3.30.0100.05313.78
5.3.20.0230.03713.73
5.3.10.0130.04313.52
5.3.00.0170.04313.68
5.2.170.0130.04011.13
5.2.160.0170.03311.20
5.2.150.0170.03311.12
5.2.140.0130.03711.21
5.2.130.0130.03711.01
5.2.120.0030.04310.97
5.2.110.0130.04010.97
5.2.100.0030.04711.17
5.2.90.0200.03011.09
5.2.80.0170.03011.10
5.2.70.0070.03311.05
5.2.60.0070.03710.91
5.2.50.0070.03011.02
5.2.40.0070.03010.92
5.2.30.0030.03710.96
5.2.20.0100.03010.87
5.2.10.0170.02710.82
5.2.00.0130.03710.68
5.1.60.0200.0239.95
5.1.50.0070.0279.98
5.1.40.0030.0279.98
5.1.30.0130.03310.40
5.1.20.0070.04010.44
5.1.10.0030.03310.02
5.1.00.0100.03010.02
5.0.50.0000.0338.61
5.0.40.0030.0308.34
5.0.30.0070.0338.20
5.0.20.0070.0238.16
5.0.10.0130.0138.24
5.0.00.0070.0308.22
4.4.90.0100.0105.84
4.4.80.0030.0175.76
4.4.70.0000.0175.81
4.4.60.0070.0135.75
4.4.50.0030.0175.86
4.4.40.0130.0175.85
4.4.30.0070.0105.82
4.4.20.0030.0135.90
4.4.10.0070.0135.89
4.4.00.0030.0305.82
4.3.110.0030.0175.77
4.3.100.0000.0175.80
4.3.90.0030.0135.84
4.3.80.0070.0205.71
4.3.70.0030.0135.72
4.3.60.0000.0175.82
4.3.50.0000.0175.83
4.3.40.0000.0275.80
4.3.30.0070.0104.62
4.3.20.0000.0174.60
4.3.10.0000.0174.49
4.3.00.0030.0206.92

preferences:
150.07 ms | 1394 KiB | 7 Q