3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit
http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002<br /> Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo for api.eve-central.com failed: System error 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 for api.eve-central.com failed: System error 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) Warning: Attempt to read property "marketstat" on bool in /in/M2bFm on line 13 Warning: Attempt to read property "type" on null in /in/M2bFm on line 13 Warning: Attempt to read property "buy" on null in /in/M2bFm on line 13 Warning: Attempt to read property "volume" on null in /in/M2bFm on line 13
Output for rfc.property-hooks
http://api.eve-central.com/api/marketstat?typeid=1230&regionlimit=10000002<br /> Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo for api.eve-central.com failed: System error 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 for api.eve-central.com failed: System error 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) Warning: Attempt to read property "marketstat" on false in /in/M2bFm on line 13 Warning: Attempt to read property "type" on null in /in/M2bFm on line 13 Warning: Attempt to read property "buy" on null in /in/M2bFm on line 13 Warning: Attempt to read property "volume" on null in /in/M2bFm on line 13

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
43.78 ms | 403 KiB | 8 Q