3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php file_get_contents('http://127.0.0.1');
based on VbUOY
Output for 5.4.39 - 5.6.28, 7.0.0 - 7.1.0
Warning: file_get_contents(http://127.0.0.1): failed to open stream: Connection refused in /in/XuFYq on line 2
Output for hhvm-3.12.0
Warning: Failed to open http://127.0.0.1 (Failed to connect to 127.0.0.1 port 80: Connection refused) in /in/XuFYq on line 2
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.3 - 5.4.38
Warning: file_get_contents(http://127.0.0.1): failed to open stream: Network is unreachable in /in/XuFYq on line 2
Output for 4.3.2
Warning: file_get_contents(): php_hostconnect: connect failed in /in/XuFYq on line 2 Warning: file_get_contents(http://127.0.0.1): failed to open stream: Network is unreachable in /in/XuFYq on line 2
Output for 4.3.1
Warning: file_get_contents() [http://www.php.net/function.file-get-contents]: php_hostconnect: connect failed in /in/XuFYq on line 2 Warning: file_get_contents(http://127.0.0.1) [http://www.php.net/function.file-get-contents]: failed to create stream: Network is unreachable in /in/XuFYq on line 2
Output for 4.3.0
Warning: file_get_contents() [http://www.php.net/function.file-get-contents]: php_hostconnect: connect failed in /in/XuFYq on line 2 Warning: file_get_contents(http://127.0.0.1) [http://www.php.net/function.file-get-contents]: failed to create stream: Connection refused in /in/XuFYq on line 2