3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php file_get_contents('http://example.com'); ?>
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/mqH12 on line 3 Warning: file_get_contents(http://example.com): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/mqH12 on line 3
Output for hhvm-3.15.4
Warning: Failed to open http://example.com (Could not resolve host: example.com) in /in/mqH12 on line 3