3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $host="74.125.0.0" ; $port=80; $timeout=30; $sk=fsockopen($host,$port,$errnum,$errstr,$timeout) ; if (!is_resource($sk)) { exit("connection fail: ".$errnum." ".$errstr) ; } else { echo "Connected"; } ?>
Output for 5.0.0 - 7.2.0
Warning: fsockopen(): unable to connect to 74.125.0.0:80 (Network is unreachable) in /in/NJeJC on line 5 connection fail: 101 Network is unreachable
Output for 4.3.3 - 4.4.9
Warning: fsockopen(): unable to connect to 74.125.0.0:80 in /in/NJeJC on line 5 connection fail: 101 Network is unreachable
Output for 4.3.2
Warning: fsockopen(): php_hostconnect: connect failed in /in/NJeJC on line 5 Warning: fsockopen(): unable to connect to 74.125.0.0:80 in /in/NJeJC on line 5 connection fail: 101 Network is unreachable
Output for 4.3.0 - 4.3.1

Process exited with code 139.