3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: text/html; charset=utf-8'); function h($str) {return htmlspecialchars($str, ENT_QUOTES, 'UTF-8');} $domain='yahoo.co.jp'; $whois_server='whois.jprs.jp'; $fp=fsockopen($whois_server,43,$errno,$errstr,15); if(!$fp){echo "$errstr ($errno)";} else{fputs($fp,"$domain\n"); echo "<pre>\n"; while(!feof($fp)){$line=fgets($fp,128); $whois=mb_convert_encoding($line,'UTF-8','auto'); echo h($whois);} echo "\n</pre>"; fclose ($fp);} ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: fsockopen(): php_network_getaddresses: getaddrinfo for whois.jprs.jp failed: System error in /in/lGFTs on line 8 Warning: fsockopen(): Unable to connect to whois.jprs.jp:43 (php_network_getaddresses: getaddrinfo for whois.jprs.jp failed: System error) in /in/lGFTs on line 8 php_network_getaddresses: getaddrinfo for whois.jprs.jp 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:
52.57 ms | 402 KiB | 8 Q