3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fp = fsockopen('www.google.com', 80, $errno, $errstr, 3); var_dump($fp);
Output for 5.6.30, 7.0.30 - 7.3.0alpha1
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: System error in /in/U1Ock on line 3 Warning: fsockopen(): unable to connect to www.google.com:80 (php_network_getaddresses: getaddrinfo failed: System error) in /in/U1Ock on line 3 bool(false)
Output for hhvm-3.18.5 - 3.22.0
bool(false)