3v4l.org

run code in 300+ PHP versions simultaneously
<?php $siteName = 'Jenny@UK News'; // YQL query (SELECT * from feed ... ) // Split for readability $path = "http://query.yahooapis.com/v1/public/yql?q="; $path .= urlencode("SELECT * FROM feed WHERE url='http://jennyuknews.tumblr.com/rss'"); $path .= "&format=json"; // Call YQL, and if the query didn't fail, cache the returned data $feed = file_get_contents($path); // Decode that shizzle $feed = json_decode($feed);

preferences:
52.17 ms | 402 KiB | 5 Q