3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $homepage = file_get_contents('http://www.example.com/'); echo $homepage; echo date('m/d/Y - H:i');
based on p6AC3
Output for 7.0.20, 7.1.5 - 7.2.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/CFmCf on line 2 Warning: file_get_contents(http://www.example.com/): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/CFmCf on line 2 09/30/2015 - 13:32
Output for 5.4.0 - 7.0.8, 7.1.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/CFmCf on line 2 Warning: file_get_contents(http://www.example.com/): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/CFmCf on line 2 09/30/2015 - 13:32