3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $address = 'http://iss.moex.com/iss/statistics/engines/futures/markets/indicativerates/securities/USD/RUB.json?from='.date('Y-m-d'); $string = file_get_contents($address); $data = json_encode($string, true); var_dump($data);
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/6v5Nm on line 3 Warning: file_get_contents(http://iss.moex.com/iss/statistics/engines/futures/markets/indicativerates/securities/USD/RUB.json?from=2017-07-03): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/6v5Nm on line 3 string(5) "false"
Output for hhvm-3.15.4
Warning: Failed to open http://iss.moex.com/iss/statistics/engines/futures/markets/indicativerates/securities/USD/RUB.json?from=2017-07-03 (Could not resolve host: iss.moex.com) in /in/6v5Nm on line 3 string(5) "false"