3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fb_username = 'LinkToLife'; $tw_username = 'phishnet'; $fb = @json_decode(file_get_contents('https://graph.facebook.com/'.$fb_username)); $fb_fans = number_format($fb->fan_count); $tw = @json_decode(file_get_contents('http://api.twitter.com/1/users/show.json?screen_name='.$tw_username)); $tw_followers = number_format($tw->followers_count); ?><html> <head> <title>Fans and Followers</title> </head> <body> Facebook fan count: <?=$fb_fans;?><br /> Twitter follower count: <?=$tw_followers;?><br /> </body> </html>

preferences:
40.7 ms | 402 KiB | 5 Q