3v4l.org

run code in 300+ PHP versions simultaneously
<?php function _its_video_gallery_livestream_thumbnail($cid, $vid) { // $url = 'http://x'.$cid.'x.api.channel.livestream.com/2.0/thumbnail.json?id='.$vid; // $response = drupal_http_request($url); $example = '{"channel":{"title":"Lukees TV","link":"http:\/\/www.livestream.com\/lukeestv","description":"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus id nunc. Nulla urna. Aenean turpis. Sed blandit tincidunt turpis. In hac habitasse platea dictumst. Fusce sit amet eros ac odio accumsan blandit. Integer diam odio, convallis quis, bibendum non, tincidunt ut, dolor. Morbi condimentum tellus vel eros volutpat accumsan.","image":{"url":"http:\/\/www.livestream.com\/filestore\/logos\/43490ae9-784d-ca90-856a-a0fded694dc9-small.png"},"language":"English","category":"Art & Creativity","category_ad_name":"art","pubDate":"Tue, 29 Jul 2008 17:37:06 GMT","shareUrl":"http:\/\/livestre.am\/5Um","isPremium":false,"viewsCount":17231,"totalClips":1,"item":[{"title":"Walking' the Dog","description":"I walked kea through the very-wet Gryo Park in Cadboro Bay, BC.","link":"http:\/\/www.livestream.com\/lukeestv\/video?clipId=flv_92609a8d-afa6-4832-a8b2-ac4dc2925f4b","guid":"flv_92609a8d-afa6-4832-a8b2-ac4dc2925f4b","workflowStatus":"Complete","isRecorded":false,"isMobileCompatible":false,"viewsCount":3392,"thumbnail":{"@url":"http:\/\/www.livestream.com\/filestore\/user-files\/chlukeestv\/2010\/01\/04\/92609a8d-afa6-4832-a8b2-ac4dc2925f4b_10.jpg"},"content":{"@duration":76.23,"@type":"video\/x-flv","@url":"http:\/\/www.livestream.com\/lukeestv\/video?clipId=flv_92609a8d-afa6-4832-a8b2-ac4dc2925f4b"},"pubDate":"Mon, 04 Jan 2010 22:11:25 GMT","shareUrl":"http:\/\/livestre.am\/5Un"}],"style":{"@hide_facebook_comments":"false"}}}'; $json = drupal_json_decode($example); $thumbnail = $json->thumbnail; return $thumbnail->{'@url'}; } echo _its_video_gallery_livestream_thumbnail('abc','123');

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.0050.03812.38
5.4.250.0070.03612.38
5.4.240.0070.03612.38
5.4.230.0090.03812.38
5.4.220.0060.03512.37
5.4.210.0070.03512.37
5.4.200.0050.03712.38
5.4.190.0050.03612.37
5.4.180.0070.03912.37
5.4.170.0080.03612.38
5.4.160.0070.03912.37
5.4.150.0050.03612.37
5.4.140.0070.03612.06
5.4.130.0080.04012.04
5.4.120.0050.03612.01
5.4.110.0070.03412.00
5.4.100.0070.03512.00
5.4.90.0070.03612.00
5.4.80.0070.04812.00
5.4.70.0090.04312.00
5.4.60.0120.03912.00
5.4.50.0060.04312.00
5.4.40.0090.04011.98
5.4.30.0070.04011.98
5.4.20.0060.03911.98
5.4.10.0070.03911.98
5.4.00.0050.03711.47
5.3.280.0090.03712.71
5.3.270.0050.03912.72
5.3.260.0070.03812.72
5.3.250.0050.03912.72
5.3.240.0090.03712.72
5.3.230.0050.04712.71
5.3.220.0070.04512.68
5.3.210.0070.05012.68
5.3.200.0040.03812.68
5.3.190.0040.04012.68
5.3.180.0070.03612.67
5.3.170.0100.03412.67
5.3.160.0090.04312.67
5.3.150.0070.05012.67
5.3.140.0120.04912.66
5.3.130.0100.05412.66
5.3.120.0090.04512.66
5.3.110.0080.03812.66
5.3.100.0090.03612.12
5.3.90.0070.04112.08
5.3.80.0070.03512.07
5.3.70.0060.03712.07

preferences:
140.08 ms | 1398 KiB | 7 Q