3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = "http://apps.tirol.gv.at/lwd/produkte/llb/2014-2015/2015-05-01_0730/2015-05-01_0730_avalanche_bulletin_tyrol_de.xml"; //disabled for security reasons // if(file_exists($url)){ // $xmlFile = simple_load_file($url); // loadToDatabase($xmlFile); // } else { // exit("Coudn't find xml file"); // } $xmlFile = simplexml_load_file($url); loadToDatabase($xmlFile); function loadToDatabase($file){ print_r($file); } ?>
based on o4JPT
Output for 5.3.20 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19, 7.0.4, 7.0.20, 7.1.5 - 7.2.0
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo failed: System error in /in/eGKr1 on line 13 Warning: simplexml_load_file(http://apps.tirol.gv.at/lwd/produkte/llb/2014-2015/2015-05-01_0730/2015-05-01_0730_avalanche_bulletin_tyrol_de.xml): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/eGKr1 on line 13 Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://apps.tirol.gv.at/lwd/produkte/llb/2014-2015/2015-05-01_0730/2015-05-01_0730_avalanche_bulletin_tyrol_de.xml" in /in/eGKr1 on line 13
Output for 5.5.24 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 7.0.3, 7.0.5 - 7.0.6, 7.1.0
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/eGKr1 on line 13 Warning: simplexml_load_file(http://apps.tirol.gv.at/lwd/produkte/llb/2014-2015/2015-05-01_0730/2015-05-01_0730_avalanche_bulletin_tyrol_de.xml): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/eGKr1 on line 13 Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://apps.tirol.gv.at/lwd/produkte/llb/2014-2015/2015-05-01_0730/2015-05-01_0730_avalanche_bulletin_tyrol_de.xml" in /in/eGKr1 on line 13