3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $ts = microtime(true); $videos = array('SUVsAgaV6lM', '_HKzFR4PJIw', 'YS2j-25xBc4', '_qzJrghqDg4', 'OTR9vHunfao', 'CcU-gxR_DDA', '5VK1KYtMjIQ', 'uCURnJA4hxg', 'KCw0zQRLILQ', 'r4MAk9EaYMY'); foreach($videos as $id) { $json_output = file_get_contents("http://gdata.youtube.com/feeds/api/videos/".$id."?v=2&alt=json"); $json = json_decode($json_output, true); $view_count = $json['entry']['yt$statistics']['viewCount']; $video_likes = $json['entry']['yt$rating']['numLikes']; $video_dislikes = $json['entry']['yt$rating']['numDislikes']; $video_title = $json['entry']['title']['$t']; $video_uploader = $json['entry']['author']['0']['name']['$t']; echo"<div id='eachVideoHolder'>"; echo "<a class='fancybox fancybox.iframe' rel='one' title= '$video_title by $video_uploader' id='1' href='http://www.youtube.com/embed/".$id."'><img src='http://img.youtube.com/vi/".$id."/hqdefault.jpg' width='220' height='150'/></a>"; echo '<br>'; echo $video_title; //print the title echo '<br>'; echo "Views: $view_count"; //print number of views echo '<br>'; echo "<a href='http://www.youtube.com/watch?v=".$id."'> $video_uploader</a>"; //print the uploader name and linking it to the video echo '<br>'; echo "Dislikes: $video_dislikes"; //print number of dislikes echo '<br>'; echo "Likes: $video_likes"; //print number of likes echo '<br>'; echo"</div>"; } $te = microtime(true); $xt = ($te - $ts); echo '<p><strong>Total Execution Time: ', $xt ,'</strong></p>';

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.0270.07018.86
5.4.280.0300.04719.05
5.4.270.0270.06718.88
5.4.260.0200.04319.24
5.4.250.0170.04019.16
5.4.240.0170.04019.20
5.4.230.0170.04019.23
5.4.220.0170.04018.86
5.4.210.0270.04019.14
5.4.200.0200.04319.21
5.4.190.0400.05718.99
5.4.180.0330.05019.23
5.4.170.0130.04319.09
5.4.160.0270.03019.18
5.4.150.0300.05719.05
5.4.140.0200.06016.29
5.4.130.0200.04016.52
5.4.120.0270.04016.33
5.4.110.0270.03316.25
5.4.100.0270.06716.56
5.4.90.0170.04016.19
5.4.80.0200.06016.36
5.4.70.0230.03016.53
5.4.60.0200.06716.30
5.4.50.0270.03716.38
5.4.40.0300.03016.48
5.4.30.0130.06716.48
5.4.20.0130.07016.48
5.4.10.0200.06316.52
5.4.00.0270.06715.79
5.3.280.0270.05714.68
5.3.270.0130.04014.45
5.3.260.0170.05714.65
5.3.250.0170.03314.46
5.3.240.0170.03314.48
5.3.230.0100.04314.43
5.3.220.0200.05714.43
5.3.210.0130.05014.42
5.3.200.0170.03714.43
5.3.190.0170.04014.52
5.3.180.0170.04314.40
5.3.170.0270.06714.51
5.3.160.0170.05314.66
5.3.150.0100.05014.44
5.3.140.0130.04314.40
5.3.130.0170.03714.38
5.3.120.0200.03314.46
5.3.110.0230.07714.50
5.3.100.0200.06014.09
5.3.90.0230.07013.93
5.3.80.0200.06013.87
5.3.70.0170.07714.11
5.3.60.0200.06714.10
5.3.50.0170.03713.81
5.3.40.0130.05013.77
5.3.30.0200.03313.79
5.3.20.0200.06313.63
5.3.10.0170.07013.50
5.3.00.0070.07313.68

preferences:
270.69 ms | 1398 KiB | 8 Q