3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /** * Takibi Geri Çekme */ include "twitteroauth/twitteroauth.php"; $consumer_key = ""; $consumer_secret = ""; $access_token = ""; $access_token_secret = ""; $twitter = new TwitterOAuth($consumer_key,$consumer_secret,$access_token,$access_token_secret); $takibigericekenler = $twitter->get('https://api.twitter.com/1.1/friendships/outgoing.json'); $users = array(); foreach ($takibigericekenler->ids as $key => $userID) { $detail = $twitter->get('https://api.twitter.com/1.1/users/show.json?user_id='.$userID); $twitter->post('https://api.twitter.com/1.1/friendships/destroy.json?user_id='.$userID); # Takibi Geri Çekme array_push($users,$detail); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Twitter API</title> </head> <body> <?php foreach ($users as $key => $user) { ?> <img title="<?=$user->name;?>" src="<?=$user->profile_image_url;?>" /> <?php } ?> </body> </html>
Output for 7.0.0 - 7.2.0
Warning: include(twitteroauth/twitteroauth.php): failed to open stream: No such file or directory in /in/gDsiU on line 1 Warning: include(): Failed opening 'twitteroauth/twitteroauth.php' for inclusion (include_path='.:') in /in/gDsiU on line 1 Fatal error: Uncaught Error: Class 'TwitterOAuth' not found in /in/gDsiU:1 Stack trace: #0 {main} thrown in /in/gDsiU on line 1
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Warning: include(twitteroauth/twitteroauth.php): failed to open stream: No such file or directory in /in/gDsiU on line 1 Warning: include(): Failed opening 'twitteroauth/twitteroauth.php' for inclusion (include_path='.:') in /in/gDsiU on line 1 Fatal error: Class 'TwitterOAuth' not found in /in/gDsiU on line 1
Process exited with code 255.