3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xml='<?xml version="1.0" encoding="UTF-8" ?>'; $xml.='<Test> <Item> <Price>0.53</Price> </Item> </Test>'; $result=simplexml_load_string($xml); var_dump($result->Item->Price); echo '<br>'; echo $result->Item->Price; echo '<br>'; echo 1+$result->Item->Price; echo '<br>'; echo 1+(float)$result->Item->Price;

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
object(SimpleXMLElement)#4 (1) { [0]=> string(4) "0.53" } <br>0.53<br>1<br>1.53
Output for Array change keys
object(SimpleXMLElement)#4 (1) { [0]=> string(4) "0.53" } <br>0.53<br>1<br>1.53
Output for Lexical anon
object(SimpleXMLElement)#4 (1) { [0]=> string(4) "0.53" } <br>0.53<br>1<br>1.53

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