3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<< EMP <?xml version="1.0" encoding="utf-8" ?> <rows xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation = "Articles_Schema.xsd" > <row id="1"> <EmployeeID> <![CDATA[123]]> </EmployeeID> <EmplopyeeName> <![CDATA[John Doe]]> </EmplopyeeName> </row> <row id="2"> <EmployeeID> <![CDATA[456]]> </EmployeeID> <EmplopyeeName> <![CDATA[Jack Mill]]> </EmplopyeeName> </row> </rows> EMP; $xmlToArray = json_decode(json_encode((array)simplexml_load_string($xml,null,LIBXML_NOCDATA)),true); foreach($xmlToArray['row'] as $row){ echo $row['EmployeeID'].'---'.$row['EmplopyeeName']; }
Output for git.master, git.master_jit, rfc.property-hooks
123 --- John Doe 456 --- Jack Mill

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:
164.46 ms | 405 KiB | 5 Q