3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $typeID = 1230; // set feed URL $url = 'http://api.eve-central.com/api/marketstat?typeid='.$typeID.'&regionlimit=10000002'; echo $url."<br />"; // read feed into SimpleXML object $sxml = simplexml_load_file($url); // then you can do var_dump($sxml); // And now you'll be able to call `$sxml->marketstat->type->buy->volume` as well as other properties. echo $sxml->marketstat->type->buy->volume; ?>
Output for 5.5.0 - 7.1.0
http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002<br /> Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/M2bFm on line 7 Warning: simplexml_load_file(http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/M2bFm on line 7 Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002" in /in/M2bFm on line 7 bool(false) Notice: Trying to get property of non-object in /in/M2bFm on line 13 Notice: Trying to get property of non-object in /in/M2bFm on line 13 Notice: Trying to get property of non-object in /in/M2bFm on line 13 Notice: Trying to get property of non-object in /in/M2bFm on line 13
Output for 5.2.6 - 5.4.45
http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002<br /> Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/M2bFm on line 7 Warning: simplexml_load_file(http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/M2bFm on line 7 Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002" in /in/M2bFm on line 7 bool(false)
Output for 5.2.3 - 5.2.5
http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002<br /> Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/M2bFm on line 7 Warning: simplexml_load_file(http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002): failed to open stream: Connection refused in /in/M2bFm on line 7 Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002" in /in/M2bFm on line 7 bool(false)
Output for 5.1.2 - 5.2.2
http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002<br /><br /> <b>Warning</b>: simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: php_network_getaddresses: getaddrinfo failed: Name or service not known in <b>/in/M2bFm</b> on line <b>7</b><br /> <br /> <b>Warning</b>: simplexml_load_file(http://api.eve-central.com/api/marketstat?typeid=1230&amp;regionlimit=10000002) [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: failed to open stream: Connection refused in <b>/in/M2bFm</b> on line <b>7</b><br /> <br /> <b>Warning</b>: simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: I/O warning : failed to load external entity &quot;http://api.eve-central.com/api/marketstat?typeid=1230&amp;regionlimit=10000002&quot; in <b>/in/M2bFm</b> on line <b>7</b><br /> bool(false)
Output for 5.1.0 - 5.1.1
http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002<br /><br /> <b>Warning</b>: simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: php_network_getaddresses: getaddrinfo failed: Name or service not known in <b>/in/M2bFm</b> on line <b>7</b><br /> <br /> <b>Warning</b>: simplexml_load_file(http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002) [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: failed to open stream: Connection refused in <b>/in/M2bFm</b> on line <b>7</b><br /> <br /> <b>Warning</b>: simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: I/O warning : failed to load external entity &quot;http://api.eve-central.com/api/marketstat?typeid=1230&amp;regionlimit=10000002&quot; in <b>/in/M2bFm</b> on line <b>7</b><br /> bool(false)
Output for 5.0.3 - 5.0.5
http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002<br /><br /> <b>Warning</b>: simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: php_network_getaddresses: getaddrinfo failed: Name or service not known in <b>/in/M2bFm</b> on line <b>7</b><br /> <br /> <b>Warning</b>: simplexml_load_file(http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002) [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: failed to open stream: Connection refused in <b>/in/M2bFm</b> on line <b>7</b><br /> <br /> <b>Warning</b>: connection refusedI/O warning : failed to load external entity "http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002" in <b>/in/M2bFm</b> on line <b>7</b><br /> bool(false)
Output for 5.0.1 - 5.0.2
http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002<br /><br /> <b>Warning</b>: simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: php_network_getaddresses: gethostbyname failed in <b>/in/M2bFm</b> on line <b>7</b><br /> <br /> <b>Warning</b>: simplexml_load_file(http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002) [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: failed to open stream: Success in <b>/in/M2bFm</b> on line <b>7</b><br /> <br /> <b>Warning</b>: connection refusedI/O warning : failed to load external entity "http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002" in <b>/in/M2bFm</b> on line <b>7</b><br /> bool(false)
Output for 5.0.0
http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002<br /><br /> <b>Warning</b>: simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: php_network_getaddresses: gethostbyname failed in <b>/in/M2bFm</b> on line <b>7</b><br /> <br /> <b>Warning</b>: simplexml_load_file(http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002) [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: failed to open stream: Bad file descriptor in <b>/in/M2bFm</b> on line <b>7</b><br /> <br /> <b>Warning</b>: connection refusedI/O warning : failed to load external entity "http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002" in <b>/in/M2bFm</b> on line <b>7</b><br /> bool(false)
Output for 4.4.5 - 4.4.9
http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002<br /><br /> <b>Fatal error</b>: Call to undefined function: simplexml_load_file() in <b>/in/M2bFm</b> on line <b>7</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.4
http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002<br /><br /> <b>Fatal error</b>: Call to undefined function: simplexml_load_file() in <b>/in/M2bFm</b> on line <b>7</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002<br /><br /> <b>Fatal error</b>: Call to undefined function: simplexml_load_file() in <b>/in/M2bFm</b> on line <b>7</b><br />