3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fb_username = 'ShuroSan'; $fb = @json_decode(file_get_contents('https://graph.facebook.com/'.$fb_username)); $fb_fans = number_format($fb->fan_count); ?><html> <head> <title>Fans and Followers</title> </head> <body> Facebook fan count: <?=$fb_fans;?><br /> </body> </html>
Output for 5.4.0 - 7.1.0
Notice: Trying to get property of non-object in /in/k18vF on line 5 <html> <head> <title>Fans and Followers</title> </head> <body> Facebook fan count: 0<br /> </body> </html>
Output for 5.2.0 - 5.3.29
Notice: Trying to get property of non-object in /in/k18vF on line 5 <html> <head> <title>Fans and Followers</title> </head> <body> Facebook fan count: <?=$fb_fans;?><br /> </body> </html>
Output for 4.3.2 - 5.1.6

Process exited with code 255.
Output for 4.3.0 - 4.3.1