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 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
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.
Output for 8.0.13
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 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0, 7.3.32 - 7.3.33, 7.4.33
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 7.2.29 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.32
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.
Output for 7.1.20, 7.2.6
Warning: include(): open_basedir restriction in effect. File(twitteroauth/twitteroauth.php) is not within the allowed path(s): (/tmp:/in) 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.
Output for 5.5.24 - 5.5.35, 5.6.8 - 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.

preferences:
156.03 ms | 402 KiB | 183 Q