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); }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: fsockopen(): php_network_getaddresses: getaddrinfo for stream.twitter.com failed: System error in /in/Xa22n on line 9 Warning: fsockopen(): Unable to connect to stream.twitter.com:80 (php_network_getaddresses: getaddrinfo for stream.twitter.com failed: System error) in /in/Xa22n on line 9 php_network_getaddresses: getaddrinfo for stream.twitter.com failed: System error (0)

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
36.02 ms | 402 KiB | 8 Q