3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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');
Output for 5.4.0 - 5.4.26
Parse error: syntax error, unexpected 'the' (T_STRING) in /in/l6bpu on line 6
Process exited with code 255.
Output for 5.3.7 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/l6bpu on line 6
Process exited with code 255.