3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $sha1file = sha1_file("http://w3schools.com/.."); echo $sha1file;
Output for 7.0.20, 7.1.5 - 7.2.0
Warning: sha1_file(): php_network_getaddresses: getaddrinfo failed: System error in /in/aG5qa on line 3 Warning: sha1_file(http://w3schools.com/..): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/aG5qa on line 3
Output for 5.5.0 - 7.0.10, 7.1.0
Warning: sha1_file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/aG5qa on line 3 Warning: sha1_file(http://w3schools.com/..): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/aG5qa on line 3