3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_time_limit(20); $query_data = array('track' => 'lo que quieres buscar'); $user = 'username'; // replace with your account $pass = 'password'; // replace with your account $fp = fsockopen("stream.twitter.com", 80, $errno, $errstr, 20); if(!$fp){ print "$errstr ($errno)\n"; } else { $request = "GET /1/statuses/filter.json?" . http_build_query($query_data) . " HTTP/1.1\r\n"; $request .= "Host: stream.twitter.com\r\n"; $request .= "Authorization: Basic " . base64_encode($user . ':' . $pass) . "\r\n\r\n"; //fwrite($fp, $request); while(!feof($fp)){ $json = fgets($fp); echo($data); $data = json_decode($json, true); if($data){ // // Do something with the data! // var_dump($data); } } fclose($fp); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 22
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 60
Branch analysis from position: 60
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 52
Branch analysis from position: 52
2 jumps found. (Code = 44) Position 1 = 57, Position 2 = 38
Branch analysis from position: 57
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 38
2 jumps found. (Code = 43) Position 1 = 49, Position 2 = 52
Branch analysis from position: 49
2 jumps found. (Code = 44) Position 1 = 57, Position 2 = 38
Branch analysis from position: 57
Branch analysis from position: 38
Branch analysis from position: 52
filename:       /in/Xa22n
function name:  (null)
number of ops:  61
compiled vars:  !0 = $query_data, !1 = $user, !2 = $pass, !3 = $fp, !4 = $errno, !5 = $errstr, !6 = $request, !7 = $json, !8 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'set_time_limit'
          1        SEND_VAL                                                 20
          2        DO_ICALL                                                 
    5     3        ASSIGN                                                   !0, <array>
    6     4        ASSIGN                                                   !1, 'username'
    7     5        ASSIGN                                                   !2, 'password'
    9     6        INIT_FCALL                                               'fsockopen'
          7        SEND_VAL                                                 'stream.twitter.com'
          8        SEND_VAL                                                 80
          9        SEND_REF                                                 !4
         10        SEND_REF                                                 !5
         11        SEND_VAL                                                 20
         12        DO_ICALL                                         $13     
         13        ASSIGN                                                   !3, $13
   10    14        BOOL_NOT                                         ~15     !3
         15      > JMPZ                                                     ~15, ->22
   11    16    >   ROPE_INIT                                     4  ~17     !5
         17        ROPE_ADD                                      1  ~17     ~17, '+%28'
         18        ROPE_ADD                                      2  ~17     ~17, !4
         19        ROPE_END                                      3  ~16     ~17, '%29%0A'
         20        ECHO                                                     ~16
         21      > JMP                                                      ->60
   13    22    >   INIT_FCALL                                               'http_build_query'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                         $19     
         25        CONCAT                                           ~20     'GET+%2F1%2Fstatuses%2Ffilter.json%3F', $19
         26        CONCAT                                           ~21     ~20, '+HTTP%2F1.1%0D%0A'
         27        ASSIGN                                                   !6, ~21
   14    28        ASSIGN_OP                                     8          !6, 'Host%3A+stream.twitter.com%0D%0A'
   15    29        INIT_FCALL                                               'base64_encode'
         30        CONCAT                                           ~24     !1, '%3A'
         31        CONCAT                                           ~25     ~24, !2
         32        SEND_VAL                                                 ~25
         33        DO_ICALL                                         $26     
         34        CONCAT                                           ~27     'Authorization%3A+Basic+', $26
         35        CONCAT                                           ~28     ~27, '%0D%0A%0D%0A'
         36        ASSIGN_OP                                     8          !6, ~28
   17    37      > JMP                                                      ->52
   18    38    >   INIT_FCALL                                               'fgets'
         39        SEND_VAR                                                 !3
         40        DO_ICALL                                         $30     
         41        ASSIGN                                                   !7, $30
   19    42        ECHO                                                     !8
   20    43        INIT_FCALL                                               'json_decode'
         44        SEND_VAR                                                 !7
         45        SEND_VAL                                                 <true>
         46        DO_ICALL                                         $32     
         47        ASSIGN                                                   !8, $32
   21    48      > JMPZ                                                     !8, ->52
   25    49    >   INIT_FCALL                                               'var_dump'
         50        SEND_VAR                                                 !8
         51        DO_ICALL                                                 
   17    52    >   INIT_FCALL                                               'feof'
         53        SEND_VAR                                                 !3
         54        DO_ICALL                                         $35     
         55        BOOL_NOT                                         ~36     $35
         56      > JMPNZ                                                    ~36, ->38
   28    57    >   INIT_FCALL                                               'fclose'
         58        SEND_VAR                                                 !3
         59        DO_ICALL                                                 
   29    60    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.22 ms | 1392 KiB | 31 Q