3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $handle = fopen('http://173.194.45.48', 'r'); var_dump(get_resource_type($handle));
Output for 5.3.0 - 7.1.0
Warning: fopen(http://173.194.45.48): failed to open stream: Network is unreachable in /in/bm2A5 on line 3 Warning: get_resource_type() expects parameter 1 to be resource, boolean given in /in/bm2A5 on line 4 NULL
Output for 4.3.3 - 5.2.17
Warning: fopen(http://173.194.45.48): failed to open stream: Network is unreachable in /in/bm2A5 on line 3 Warning: Supplied argument is not a valid resource handle in /in/bm2A5 on line 4 bool(false)
Output for 4.3.2
Warning: fopen(): php_hostconnect: connect failed in /in/bm2A5 on line 3 Warning: fopen(http://173.194.45.48): failed to open stream: Network is unreachable in /in/bm2A5 on line 3 Warning: Supplied argument is not a valid resource handle in /in/bm2A5 on line 4 bool(false)
Output for 4.3.0 - 4.3.1
Warning: fopen() [http://www.php.net/function.fopen]: php_hostconnect: connect failed in /in/bm2A5 on line 3 Warning: fopen(http://173.194.45.48) [http://www.php.net/function.fopen]: failed to create stream: Network is unreachable in /in/bm2A5 on line 3 Warning: Supplied argument is not a valid resource handle in /in/bm2A5 on line 4 bool(false)