3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $stream = fsockopen("81.242.50.248", "4445",$errno,$errstr,3600); if($stream){ }else{ echo "nope<br>"; } ?>
Output for 5.0.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: fsockopen(): unable to connect to 81.242.50.248:4445 (Network is unreachable) in /in/P9Mj8 on line 2 nope<br>
Output for hhvm-3.12.0
Warning: unable to connect to 81.242.50.248 [101]: Network is unreachable in /in/P9Mj8 on line -1 nope<br>
Output for hhvm-3.10.0
Warning: unable to connect to 81.242.50.248 [101]: Network is unreachable in /in/P9Mj8 on line 2 nope<br>
Output for 4.3.3 - 4.4.9
Warning: fsockopen(): unable to connect to 81.242.50.248:4445 in /in/P9Mj8 on line 2 nope<br>
Output for 4.3.2
Warning: fsockopen(): php_hostconnect: connect failed in /in/P9Mj8 on line 2 Warning: fsockopen(): unable to connect to 81.242.50.248:4445 in /in/P9Mj8 on line 2 nope<br>
Output for 4.3.0 - 4.3.1

Process exited with code 139.