3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new SimpleXMLElement('<vehicle id="8"> <name>MAREK</name> <recorder>8</recorder> <production-date>0</production-date> <registration-number>SI40996</registration-number> <fuel> <type> </type> <nominal>0</nominal> <drive>0</drive> <work>0</work> <stay>0</stay> </fuel> <attributes> <attribute name="PHONE_NUMBER" type="5">123456789</attribute> <attribute name="EMAIL" type="5">w@wp.pl</attribute> </attributes> </vehicle>'); foreach ($xml->xpath('//vehicle[@id="8"]') as $item) { echo $item; foreach ($item->children() as $child) { echo $child; } }
Output for git.master, git.master_jit, rfc.property-hooks
MAREK80SI40996

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