3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getDomainProp($domain){ if ($_BLOB_CACHE === null){ $tmp = file('tmp/cache.txt'); $_BLOB_CACHE = foreach ($tmp as $l){ $l = trim($l); $arr = explode(';', $l); $_BLOB_CACHE[array_shift($arr)] = $arr; } } if (isset($_BLOB_CACHE[$domain])) return $_BLOB_CACHE[$domain]; $postdata = 'raw_whois=on&getCI=on&getPR=on&getWeblog=on&getAlexa=on&getLI=on&getYAI=on&getGI=on&getYAHOOBacks=on&isYACA=on&isDMOZ=on&domain=' . $domain; $opts = array('http' => array( 'method' => 'POST', 'header' => explode("\n", 'Connection: keep-alive Accept: text/javascript, text/html, application/xml, text/xml, */* Origin: http://web24.ru X-Requested-With: XMLHttpRequest User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1624.2 Safari/537.36 Content-type: application/x-www-form-urlencoded; charset=UTF-8 Referer: http://web24.ru/tools/domain/ Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8'), 'content' => $postdata ) ); $context = stream_context_create($opts); $result = file_get_contents('http://web24.ru/dn.php?js=1', false, $context); $res = array(); preg_match_all('/CY\: (\d+)/', $result, $match); print_r($match); print_r($result); return false; }

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.5.30.0070.04319.38
5.5.20.0030.05019.29
5.5.10.0100.06719.49
5.5.00.0070.06319.45
5.4.190.0070.04319.11
5.4.180.0100.07719.14
5.4.170.0100.07019.14
5.4.160.0000.06019.25
5.4.150.0130.06019.10
5.4.140.0000.05716.50
5.4.130.0070.06316.29
5.4.120.0030.04016.38
5.4.110.0030.04316.37
5.4.100.0100.05316.30
5.4.90.0100.03016.30
5.4.80.0000.04016.47
5.4.70.0000.04016.71
5.4.60.0100.03016.37
5.4.50.0100.08716.44
5.4.40.0070.07316.64
5.4.30.0000.05316.39
5.4.20.0100.07016.36
5.4.10.0270.05716.38
5.4.00.0100.07315.95
5.3.270.0170.06314.64
5.3.260.0070.04314.64
5.3.250.0070.04314.62
5.3.240.0170.07714.62
5.3.230.0100.04014.52
5.3.220.0130.03014.73
5.3.210.0170.03714.60
5.3.200.0070.05314.55
5.3.190.0070.04314.73
5.3.180.0100.06014.59
5.3.170.0000.04014.59
5.3.160.0100.06314.58
5.3.150.0130.07314.57
5.3.140.0100.07714.55
5.3.130.0070.07714.60
5.3.120.0130.08014.56
5.3.110.0070.08314.57
5.3.100.0000.05314.05
5.3.90.0130.07014.08
5.3.80.0170.06714.03
5.3.70.0170.03713.93
5.3.60.0070.06014.01
5.3.50.0000.04013.83
5.3.40.0030.06314.09
5.3.30.0070.07013.96
5.3.20.0130.06013.64
5.3.10.0130.06013.67
5.3.00.0100.07013.60

preferences:
139.72 ms | 1394 KiB | 7 Q