3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<XML <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="isokur.xsl"?> <Tarih_Date Tarih="11.05.2017" Date="05/11/2017" Bulten_No="2017/93" > <Currency CrossOrder="0" Kod="USD" CurrencyCode="USD"> <Unit>1</Unit> <Isim>ABD DOLARI</Isim> <CurrencyName>US DOLLAR</CurrencyName> <ForexBuying>3.5736</ForexBuying> <ForexSelling>3.5801</ForexSelling> <BanknoteBuying>3.5711</BanknoteBuying> <BanknoteSelling>3.5854</BanknoteSelling> <CrossRateUSD/> <CrossRateOther/> </Currency> <Currency CrossOrder="1" Kod="AUD" CurrencyCode="AUD"> <Unit>1</Unit> <Isim>AVUSTRALYA DOLARI</Isim> <CurrencyName>AUSTRALIAN DOLLAR</CurrencyName> <ForexBuying>2.6271</ForexBuying> <ForexSelling>2.6442</ForexSelling> <BanknoteBuying>2.6150</BanknoteBuying> <BanknoteSelling>2.6601</BanknoteSelling> <CrossRateUSD>1.3571</CrossRateUSD> <CrossRateOther/> </Currency> </Tarih_Date> XML; $xml = new DOMDocument(); $xml->loadXML($string); foreach($xml->getElementsByTagName('Currency') as $c) { echo $c->getAttribute('CurrencyCode'); echo "\n"; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
USD AUD

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:
35.95 ms | 401 KiB | 8 Q