3v4l.org

run code in 300+ PHP versions simultaneously
<?php function StartElement($parser, $name, $attrs) { if (!empty($attrs['RATE'])) { echo "1&euro;=".$attrs['RATE']." ".$attrs['CURRENCY']."<br />"; } } $xml_parser= xml_parser_create(); xml_set_element_handler($xml_parser, "StartElement", ""); // for the following command you will need file_get_contents (PHP >= 4.3.0) // and the config option allow_url_fopen=On (default) xml_parse($xml_parser, file_get_contents ("http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml")); xml_parser_free($xml_parser); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for www.ecb.europa.eu failed: System error in /in/AhIOW on line 11 Warning: file_get_contents(http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml): Failed to open stream: php_network_getaddresses: getaddrinfo for www.ecb.europa.eu failed: System error in /in/AhIOW on line 11

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:
41.71 ms | 402 KiB | 8 Q