3v4l.org

run code in 300+ PHP versions simultaneously
<?php $limite = 100; $tag = 'lembrardesercrianca'; // Client id $client_id = "60d01f1357c24a5aab29133e8f91de2a"; // Api $api = "https://api.instagram.com/v1/tags/$tag/media/recent?client_id=$client_id&count=$limite"; //populares //$api = "https://api.instagram.com/v1/tags/$tag/media/popular?client_id=$client_id&count=$limite"; // Contents $contents = file_get_contents($api); // Json $json = json_decode($contents, true); // Find in the next 5 pages (limited for 20 results by page) for ($i = 0; $i < 5; $i++) { if($json['pagination']['next_url']){ $nextLink = $json['pagination']['next_url']; $contents = file_get_contents($nextLink); $json2 = json_decode($contents, true); // Add the data $combinedData = array_merge($json['data'], $json2['data']); } } return $combinedData; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
2 jumps found. (Code = 44) Position 1 = 46, Position 2 = 21
Branch analysis from position: 46
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 43
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 46, Position 2 = 21
Branch analysis from position: 46
Branch analysis from position: 21
Branch analysis from position: 43
filename:       /in/blpat
function name:  (null)
number of ops:  48
compiled vars:  !0 = $limite, !1 = $tag, !2 = $client_id, !3 = $api, !4 = $contents, !5 = $json, !6 = $i, !7 = $nextLink, !8 = $json2, !9 = $combinedData
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 100
    3     1        ASSIGN                                                   !1, 'lembrardesercrianca'
    5     2        ASSIGN                                                   !2, '60d01f1357c24a5aab29133e8f91de2a'
    7     3        ROPE_INIT                                     6  ~14     'https%3A%2F%2Fapi.instagram.com%2Fv1%2Ftags%2F'
          4        ROPE_ADD                                      1  ~14     ~14, !1
          5        ROPE_ADD                                      2  ~14     ~14, '%2Fmedia%2Frecent%3Fclient_id%3D'
          6        ROPE_ADD                                      3  ~14     ~14, !2
          7        ROPE_ADD                                      4  ~14     ~14, '%26count%3D'
          8        ROPE_END                                      5  ~13     ~14, !0
          9        ASSIGN                                                   !3, ~13
   12    10        INIT_FCALL                                               'file_get_contents'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                         $18     
         13        ASSIGN                                                   !4, $18
   14    14        INIT_FCALL                                               'json_decode'
         15        SEND_VAR                                                 !4
         16        SEND_VAL                                                 <true>
         17        DO_ICALL                                         $20     
         18        ASSIGN                                                   !5, $20
   17    19        ASSIGN                                                   !6, 0
         20      > JMP                                                      ->44
   18    21    >   FETCH_DIM_R                                      ~23     !5, 'pagination'
         22        FETCH_DIM_R                                      ~24     ~23, 'next_url'
         23      > JMPZ                                                     ~24, ->43
   19    24    >   FETCH_DIM_R                                      ~25     !5, 'pagination'
         25        FETCH_DIM_R                                      ~26     ~25, 'next_url'
         26        ASSIGN                                                   !7, ~26
   20    27        INIT_FCALL                                               'file_get_contents'
         28        SEND_VAR                                                 !7
         29        DO_ICALL                                         $28     
         30        ASSIGN                                                   !4, $28
   21    31        INIT_FCALL                                               'json_decode'
         32        SEND_VAR                                                 !4
         33        SEND_VAL                                                 <true>
         34        DO_ICALL                                         $30     
         35        ASSIGN                                                   !8, $30
   23    36        INIT_FCALL                                               'array_merge'
         37        FETCH_DIM_R                                      ~32     !5, 'data'
         38        SEND_VAL                                                 ~32
         39        FETCH_DIM_R                                      ~33     !8, 'data'
         40        SEND_VAL                                                 ~33
         41        DO_ICALL                                         $34     
         42        ASSIGN                                                   !9, $34
   17    43    >   PRE_INC                                                  !6
         44    >   IS_SMALLER                                               !6, 5
         45      > JMPNZ                                                    ~37, ->21
   27    46    > > RETURN                                                   !9
   29    47*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.07 ms | 1405 KiB | 19 Q