3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new SimpleXMLElement('<vehicle id="8" identyfikator="23"> <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> <attr> <at name="PHONE_NUMBER" type="5">123456789</at> <at name="EMAIL" type="5">w@wp.pl</at> </attr> </vehicle>'); echo '<pre>'; var_dump($xml);
Output for git.master, git.master_jit, rfc.property-hooks
<pre>object(SimpleXMLElement)#1 (7) { ["@attributes"]=> array(2) { ["id"]=> string(1) "8" ["identyfikator"]=> string(2) "23" } ["name"]=> string(5) "MAREK" ["recorder"]=> string(1) "8" ["production-date"]=> string(1) "0" ["registration-number"]=> string(7) "SI40996" ["fuel"]=> object(SimpleXMLElement)#2 (5) { ["type"]=> object(SimpleXMLElement)#4 (0) { } ["nominal"]=> string(1) "0" ["drive"]=> string(1) "0" ["work"]=> string(1) "0" ["stay"]=> string(1) "0" } ["attr"]=> object(SimpleXMLElement)#3 (1) { ["at"]=> array(2) { [0]=> string(9) "123456789" [1]=> string(7) "w@wp.pl" } } }

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