3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.eurobytes.nl/tutorials/league-of-legends-under-ubuntu' function getPlus1($url) { $html = file_get_contents( "https://plusone.google.com/_/+1/fastbutton?url=".urlencode($url)); $doc = new DOMDocument(); $doc->loadHTML($html); $counter=$doc->getElementById('aggregateCount'); return $counter->nodeValue; } function getTweets($url){ $json = file_get_contents( "http://urls.api.twitter.com/1/urls/count.json?url=".$url ); $ajsn = json_decode($json, true); $cont = $ajsn['count']; return $cont; } function getPins($url){ $json = file_get_contents( "http://api.pinterest.com/v1/urls/count.json?callback=receiveCount&url=".$url ); $json = substr( $json, 13, -1); $ajsn = json_decode($json, true); $cont = $ajsn['count']; return $cont; } function getFacebooks($url) { $xml = file_get_contents("http://api.facebook.com/restserver.php?method=links.getStats&urls=".urlencode($url)); $xml = simplexml_load_string($xml); $shares = $xml->link_stat->share_count; $likes = $xml->link_stat->like_count; $comments = $xml->link_stat->comment_count; return $likes + $shares + $comments; } ?>

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.260.0070.05018.99
5.4.250.0130.04719.02
5.4.240.0200.04018.84
5.4.230.0070.05719.05
5.4.220.0030.07018.84
5.4.210.0070.05319.00
5.4.200.0100.04718.94
5.4.190.0100.06018.94
5.4.180.0070.05018.80
5.4.170.0070.05318.94
5.4.160.0170.04318.79
5.4.150.0100.05318.64
5.4.140.0100.05016.27
5.4.130.0070.05316.27
5.4.120.0070.04716.32
5.4.110.0070.06716.40
5.4.100.0130.06316.49
5.4.90.0130.04016.50
5.4.80.0100.04316.51
5.4.70.0070.05016.45
5.4.60.0100.05316.55
5.4.50.0030.05016.48
5.4.40.0070.05016.35
5.4.30.0070.05016.46
5.4.20.0100.05316.44
5.4.10.0070.05016.29
5.4.00.0070.05016.03
5.3.280.0100.05014.75
5.3.270.0030.05314.30
5.3.260.0170.05014.46
5.3.250.0100.04714.45
5.3.240.0030.05314.53
5.3.230.0170.04314.45
5.3.220.0070.05014.59
5.3.210.0030.05714.27
5.3.200.0030.05714.57
5.3.190.0070.05714.44
5.3.180.0100.05014.45
5.3.170.0030.05714.42
5.3.160.0030.05314.58
5.3.150.0130.04314.67
5.3.140.0070.05014.57
5.3.130.0130.04714.57
5.3.120.0100.07314.43
5.3.110.0030.05714.56
5.3.100.0000.06013.73
5.3.90.0000.05713.87
5.3.80.0170.06714.19
5.3.70.0070.05713.86
5.3.60.0100.05014.02
5.3.50.0100.04714.00
5.3.40.0130.04713.82
5.3.30.0230.03713.93
5.3.20.0100.04313.63
5.3.10.0000.05313.52
5.3.00.0030.05313.79

preferences:
140.58 ms | 1386 KiB | 7 Q