3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo file_get_contents('http://us3.php.net/file_get_contents',false, NULL, 10, 10);
Output for 5.2.6 - 5.6.28, 7.0.0 - 7.1.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/vXiYC on line 2 Warning: file_get_contents(http://us3.php.net/file_get_contents): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/vXiYC on line 2
Output for hhvm-3.12.0
Warning: Failed to open http://us3.php.net/file_get_contents (Could not resolve host: us3.php.net) in /in/vXiYC on line 9
Output for hhvm-3.10.0
Warning: Failed to open http://us3.php.net/file_get_contents (Could not resolve host: us3.php.net) in /in/vXiYC on line 2
Output for 5.1.0 - 5.2.5
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/vXiYC on line 2 Warning: file_get_contents(http://us3.php.net/file_get_contents): failed to open stream: Connection refused in /in/vXiYC on line 2
Output for 5.0.0 - 5.0.5
Warning: file_get_contents() expects at most 3 parameters, 5 given in /in/vXiYC on line 2
Output for 4.3.0 - 4.4.9
Warning: file_get_contents() expects at most 2 parameters, 5 given in /in/vXiYC on line 2