3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test="http://google.com:1&#106@example.com"; echo $x= parse_url($test, PHP_URL_HOST); echo file_get_contents($test);
based on 4ODMn
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
google.com Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/unQuX on line 4 Warning: file_get_contents(http://...@example.com): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/unQuX on line 4
Output for hhvm-3.15.4
google.com Warning: Failed to open http://google.com:1&#106@example.com (Could not resolve host: google.com) in /in/unQuX on line 4