3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html ='<div align=center><object><embed src='http://www.GamesForWork.com/games/swf/Rodent Tree Jump january 4th 2007.swf' quality='autohigh' wmode='direct' width='640' height='400' name='gameObj' align='middle' allowScriptAccess='always' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.adobe.com/go/getflashplayer'/></object><br><font face=verdana size=1><a href='http://www.gamesforwork.com/' target='_blank'>10 daily games at gamesforwork.com</a></font></div> '; //Create a new DOM document $dom = new DOMDocument; //Parse the HTML. The @ is used to suppress any parsing errors //that will be thrown if the $html string isn't valid XHTML. @$dom->loadHTML($html); //Get all links. You could also use any other tag name here, //like 'img' or 'table', to extract other tags. $links = $dom->getElementsByTagName('a'); //Iterate over the extracted links and display their URLs foreach ($links as $link){ //Extract and show the "href" attribute. echo $link->nodeValue; echo $link->getAttribute('href'), '<br>'; }

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)
7.2.80.0680.00314.05
7.2.70.0110.01114.88
7.2.60.0120.00414.55
7.2.50.0100.00814.79
7.2.40.0130.00314.77
7.2.30.0150.00314.90
7.2.20.2030.00314.97
7.2.10.0030.01314.80
7.2.00.2130.01314.52
7.1.190.3170.01013.42
7.1.180.0100.00713.50
7.1.170.0110.00613.44
7.1.160.0150.00013.60
7.1.150.0110.00513.49
7.1.140.0460.00713.79
7.1.130.0070.01313.77
7.1.120.0110.01113.72
7.1.110.0110.00613.81
7.1.100.0100.00613.68
7.1.90.1660.00313.32
7.1.80.1480.00713.28
7.1.70.1510.01013.52
7.1.60.2300.01331.21
7.1.50.1720.00631.27
7.1.40.2680.01631.36
7.1.30.3200.01031.55
7.1.20.2280.01031.42
7.1.10.2100.01013.49
7.1.00.2970.01013.72

preferences:
138.18 ms | 1394 KiB | 7 Q