3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getHTML($http://www.dict.leo.org,$timeout) { $ch = curl_init($http://www.http://dict.leo.org); // initialize curl with given url curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER["HTTP_USER_AGENT"]); // set useragent curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // write the response to a variable curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); // follow redirects if any curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); // max. seconds to execute curl_setopt($ch, CURLOPT_FAILONERROR, 1); // stop when it encounters an error return @curl_exec($ch); } $html=getHTML("http://www.http://dict.leo.org",10); // Find all images on webpage foreach($html->find("img") as $element) echo $element->src . '<br>'; // Find all links on webpage foreach($html->find("a") as $element) echo $element->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)
5.4.290.0100.04812.50
5.4.280.0060.05312.39
5.4.270.0080.05112.39
5.4.260.0150.05612.39
5.4.250.0090.05712.39
5.4.240.0130.05812.39
5.4.230.0090.05612.38
5.4.220.0080.04312.38
5.4.210.0070.04712.38
5.4.200.0100.03812.38
5.4.190.0110.03712.38
5.4.180.0070.04112.38
5.4.170.0070.04312.39
5.4.160.0060.04112.38
5.4.150.0100.04112.38
5.4.140.0090.04112.07
5.4.130.0090.05012.05
5.4.120.0110.03912.02
5.4.110.0060.04412.01
5.4.100.0110.04512.01
5.4.90.0160.05112.01
5.4.80.0080.06512.02
5.4.70.0120.06512.01
5.4.60.0090.04912.01
5.4.50.0110.04712.00
5.4.40.0150.05112.00
5.4.30.0100.05111.99
5.4.20.0160.04511.99
5.4.10.0180.04512.00
5.4.00.0080.05611.48
5.3.280.0090.07212.71
5.3.270.0120.06712.72
5.3.260.0170.03712.72
5.3.250.0110.05712.72
5.3.240.0140.07212.72
5.3.230.0150.03412.71
5.3.220.0130.05112.68
5.3.210.0120.06412.68
5.3.200.0090.06112.68
5.3.190.0110.06612.68
5.3.180.0140.07112.68
5.3.170.0310.08712.67
5.3.160.0130.05112.67
5.3.150.0120.05112.67
5.3.140.0090.05412.66
5.3.130.0060.05512.65
5.3.120.0040.04312.65
5.3.110.0090.03812.66
5.3.100.0110.04212.13
5.3.90.0080.03712.11
5.3.80.0050.04012.09
5.3.70.0110.03812.09
5.3.60.0070.06412.08
5.3.50.0280.06412.02
5.3.40.0160.11012.02
5.3.30.0190.06011.98
5.3.20.0090.04911.77
5.3.10.0160.03511.73
5.3.00.0080.04411.71

preferences:
141.63 ms | 1394 KiB | 7 Q