3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
Warning: include(): open_basedir restriction in effect. File(twitteroauth/twitteroauth.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/gDsiU on line 1 Warning: include(twitteroauth/twitteroauth.php): Failed to open stream: Operation not permitted 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.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
42.46 ms | 402 KiB | 8 Q