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)){ var_dump (fgets($fp)); } 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 = 52
Branch analysis from position: 52
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
2 jumps found. (Code = 44) Position 1 = 49, Position 2 = 38
Branch analysis from position: 49
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 38
2 jumps found. (Code = 44) Position 1 = 49, Position 2 = 38
Branch analysis from position: 49
Branch analysis from position: 38
filename:       /in/1JHX6
function name:  (null)
number of ops:  53
compiled vars:  !0 = $query_data, !1 = $user, !2 = $pass, !3 = $fp, !4 = $errno, !5 = $errstr, !6 = $request
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                                         $11     
         13        ASSIGN                                                   !3, $11
   10    14        BOOL_NOT                                         ~13     !3
         15      > JMPZ                                                     ~13, ->22
   11    16    >   ROPE_INIT                                     4  ~15     !5
         17        ROPE_ADD                                      1  ~15     ~15, '+%28'
         18        ROPE_ADD                                      2  ~15     ~15, !4
         19        ROPE_END                                      3  ~14     ~15, '%29%0A'
         20        ECHO                                                     ~14
         21      > JMP                                                      ->52
   13    22    >   INIT_FCALL                                               'http_build_query'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                         $17     
         25        CONCAT                                           ~18     'GET+%2F1%2Fstatuses%2Ffilter.json%3F', $17
         26        CONCAT                                           ~19     ~18, '+HTTP%2F1.1%0D%0A'
         27        ASSIGN                                                   !6, ~19
   14    28        ASSIGN_OP                                     8          !6, 'Host%3A+stream.twitter.com%0D%0A'
   15    29        INIT_FCALL                                               'base64_encode'
         30        CONCAT                                           ~22     !1, '%3A'
         31        CONCAT                                           ~23     ~22, !2
         32        SEND_VAL                                                 ~23
         33        DO_ICALL                                         $24     
         34        CONCAT                                           ~25     'Authorization%3A+Basic+', $24
         35        CONCAT                                           ~26     ~25, '%0D%0A%0D%0A'
         36        ASSIGN_OP                                     8          !6, ~26
   17    37      > JMP                                                      ->44
   18    38    >   INIT_FCALL                                               'var_dump'
         39        INIT_FCALL                                               'fgets'
         40        SEND_VAR                                                 !3
         41        DO_ICALL                                         $28     
         42        SEND_VAR                                                 $28
         43        DO_ICALL                                                 
   17    44    >   INIT_FCALL                                               'feof'
         45        SEND_VAR                                                 !3
         46        DO_ICALL                                         $30     
         47        BOOL_NOT                                         ~31     $30
         48      > JMPNZ                                                    ~31, ->38
   20    49    >   INIT_FCALL                                               'fclose'
         50        SEND_VAR                                                 !3
         51        DO_ICALL                                                 
   21    52    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.98 ms | 1400 KiB | 29 Q