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>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 35
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 35
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 35
2 jumps found. (Code = 77) Position 1 = 38, Position 2 = 48
Branch analysis from position: 38
2 jumps found. (Code = 78) Position 1 = 39, Position 2 = 48
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 38
Branch analysis from position: 38
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 48
Branch analysis from position: 35
filename:       /in/gDsiU
function name:  (null)
number of ops:  51
compiled vars:  !0 = $consumer_key, !1 = $consumer_secret, !2 = $access_token, !3 = $access_token_secret, !4 = $twitter, !5 = $takibigericekenler, !6 = $users, !7 = $userID, !8 = $key, !9 = $detail, !10 = $user
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   INCLUDE_OR_EVAL                                          'twitteroauth%2Ftwitteroauth.php', INCLUDE
          1        ASSIGN                                                   !0, ''
          2        ASSIGN                                                   !1, ''
          3        ASSIGN                                                   !2, ''
          4        ASSIGN                                                   !3, ''
          5        NEW                                              $16     'TwitterOAuth'
          6        SEND_VAR_EX                                              !0
          7        SEND_VAR_EX                                              !1
          8        SEND_VAR_EX                                              !2
          9        SEND_VAR_EX                                              !3
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !4, $16
         12        INIT_METHOD_CALL                                         !4, 'get'
         13        SEND_VAL_EX                                              'https%3A%2F%2Fapi.twitter.com%2F1.1%2Ffriendships%2Foutgoing.json'
         14        DO_FCALL                                      0  $19     
         15        ASSIGN                                                   !5, $19
    2    16        ASSIGN                                                   !6, <array>
    3    17        FETCH_OBJ_R                                      ~22     !5, 'ids'
         18      > FE_RESET_R                                       $23     ~22, ->35
         19    > > FE_FETCH_R                                       ~24     $23, !7, ->35
         20    >   ASSIGN                                                   !8, ~24
    4    21        INIT_METHOD_CALL                                         !4, 'get'
         22        CONCAT                                           ~26     'https%3A%2F%2Fapi.twitter.com%2F1.1%2Fusers%2Fshow.json%3Fuser_id%3D', !7
         23        SEND_VAL_EX                                              ~26
         24        DO_FCALL                                      0  $27     
         25        ASSIGN                                                   !9, $27
    5    26        INIT_METHOD_CALL                                         !4, 'post'
         27        CONCAT                                           ~29     'https%3A%2F%2Fapi.twitter.com%2F1.1%2Ffriendships%2Fdestroy.json%3Fuser_id%3D', !7
         28        SEND_VAL_EX                                              ~29
         29        DO_FCALL                                      0          
    6    30        INIT_FCALL                                               'array_push'
         31        SEND_REF                                                 !6
         32        SEND_VAR                                                 !9
         33        DO_ICALL                                                 
    3    34      > JMP                                                      ->19
         35    >   FE_FREE                                                  $23
   10    36        ECHO                                                     '%3C%21DOCTYPE+html%3E%0A%3Chtml+lang%3D%22en%22%3E%0A%3Chead%3E%0A++%3Cmeta+charset%3D%22UTF-8%22%3E%0A++%3Ctitle%3ETwitter+API%3C%2Ftitle%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E%0A'
   17    37      > FE_RESET_R                                       $32     !6, ->48
         38    > > FE_FETCH_R                                       ~33     $32, !10, ->48
         39    >   ASSIGN                                                   !8, ~33
   18    40        ECHO                                                     '++++%3Cimg+title%3D%22'
         41        FETCH_OBJ_R                                      ~35     !10, 'name'
         42        ECHO                                                     ~35
         43        ECHO                                                     '%22+src%3D%22'
         44        FETCH_OBJ_R                                      ~36     !10, 'profile_image_url'
         45        ECHO                                                     ~36
         46        ECHO                                                     '%22+%2F%3E%0A'
   17    47      > JMP                                                      ->38
         48    >   FE_FREE                                                  $32
   20    49        ECHO                                                     '+++%0A++%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   23    50      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.26 ms | 1400 KiB | 15 Q