3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<pre><?php $urls = array( 'http://mail1.konsulterna.nu/~konsulternatool/k_Upd_dev_2/request.php?type=lst&index=l1&ref=esperia.nu&lst_id', 'http://konsulterna.nu/k_Upd_dev_2/request.php?type=lst&index=l1&ref=esperia.nu&lst_id'); foreach ($urls as $url) { $response = file_get_contents($url); $json = json_decode($response); printf("url: %s, last_error: %d\n", $url, json_last_error()); } ?></pre>
Output for 7.0.4, 7.0.20, 7.1.5 - 7.2.0
<pre> Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/s0gO9 on line 7 Warning: file_get_contents(http://mail1.konsulterna.nu/~konsulternatool/k_Upd_dev_2/request.php?type=lst&index=l1&ref=esperia.nu&lst_id): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/s0gO9 on line 7 url: http://mail1.konsulterna.nu/~konsulternatool/k_Upd_dev_2/request.php?type=lst&index=l1&ref=esperia.nu&lst_id, last_error: 4 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/s0gO9 on line 7 Warning: file_get_contents(http://konsulterna.nu/k_Upd_dev_2/request.php?type=lst&index=l1&ref=esperia.nu&lst_id): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/s0gO9 on line 7 url: http://konsulterna.nu/k_Upd_dev_2/request.php?type=lst&index=l1&ref=esperia.nu&lst_id, last_error: 4 </pre>
Output for 7.0.0 - 7.0.3, 7.0.5 - 7.0.6, 7.1.0
<pre> Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/s0gO9 on line 7 Warning: file_get_contents(http://mail1.konsulterna.nu/~konsulternatool/k_Upd_dev_2/request.php?type=lst&index=l1&ref=esperia.nu&lst_id): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/s0gO9 on line 7 url: http://mail1.konsulterna.nu/~konsulternatool/k_Upd_dev_2/request.php?type=lst&index=l1&ref=esperia.nu&lst_id, last_error: 4 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/s0gO9 on line 7 Warning: file_get_contents(http://konsulterna.nu/k_Upd_dev_2/request.php?type=lst&index=l1&ref=esperia.nu&lst_id): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/s0gO9 on line 7 url: http://konsulterna.nu/k_Upd_dev_2/request.php?type=lst&index=l1&ref=esperia.nu&lst_id, last_error: 4 </pre>
Output for 5.5.24 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 5.6.28
<pre> Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/s0gO9 on line 7 Warning: file_get_contents(http://mail1.konsulterna.nu/~konsulternatool/k_Upd_dev_2/request.php?type=lst&index=l1&ref=esperia.nu&lst_id): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/s0gO9 on line 7 url: http://mail1.konsulterna.nu/~konsulternatool/k_Upd_dev_2/request.php?type=lst&index=l1&ref=esperia.nu&lst_id, last_error: 0 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/s0gO9 on line 7 Warning: file_get_contents(http://konsulterna.nu/k_Upd_dev_2/request.php?type=lst&index=l1&ref=esperia.nu&lst_id): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/s0gO9 on line 7 url: http://konsulterna.nu/k_Upd_dev_2/request.php?type=lst&index=l1&ref=esperia.nu&lst_id, last_error: 0 </pre>
Output for 5.3.19 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19
<pre> Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/s0gO9 on line 7 Warning: file_get_contents(http://mail1.konsulterna.nu/~konsulternatool/k_Upd_dev_2/request.php?type=lst&index=l1&ref=esperia.nu&lst_id): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/s0gO9 on line 7 url: http://mail1.konsulterna.nu/~konsulternatool/k_Upd_dev_2/request.php?type=lst&index=l1&ref=esperia.nu&lst_id, last_error: 0 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/s0gO9 on line 7 Warning: file_get_contents(http://konsulterna.nu/k_Upd_dev_2/request.php?type=lst&index=l1&ref=esperia.nu&lst_id): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/s0gO9 on line 7 url: http://konsulterna.nu/k_Upd_dev_2/request.php?type=lst&index=l1&ref=esperia.nu&lst_id, last_error: 0 </pre>