3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $image = file_get_contents('http://i.imgur.com/06j7BR2.gif'); $json = json_encode($image); echo $json;
based on 6gM7Q
Output for 7.0.20, 7.1.5 - 7.2.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/QcqXe on line 3 Warning: file_get_contents(http://i.imgur.com/06j7BR2.gif): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/QcqXe on line 3 false
Output for 5.4.0 - 7.0.9, 7.1.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/QcqXe on line 3 Warning: file_get_contents(http://i.imgur.com/06j7BR2.gif): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/QcqXe on line 3 false