3v4l.org

run code in 300+ PHP versions simultaneously
<?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;
Output for git.master, git.master_jit, rfc.property-hooks
object(SimpleXMLElement)#4 (1) { [0]=> string(4) "0.53" } <br>0.53<br>1.53<br>1.53

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