3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(fsockopen("8.8.8.8", 80));
Output for 5.0.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: fsockopen(): unable to connect to 8.8.8.8:80 (Network is unreachable) in /in/nIkfp on line 2 bool(false)
Output for hhvm-3.12.0
Warning: unable to connect to 8.8.8.8 [101]: Network is unreachable in /in/nIkfp on line 2 bool(false)
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.3 - 4.4.9
Warning: fsockopen(): unable to connect to 8.8.8.8:80 in /in/nIkfp on line 2 bool(false)
Output for 4.3.2
Warning: fsockopen(): php_hostconnect: connect failed in /in/nIkfp on line 2 Warning: fsockopen(): unable to connect to 8.8.8.8:80 in /in/nIkfp on line 2 bool(false)
Output for 4.3.0 - 4.3.1

Process exited with code 139.