3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<Msg> <Txn>submitsms </Txn> <AccountID>123456789</AccountID> <Password>barfoo123</Password> <Message>test message</Message> <RateCode>1</RateCode> <Mobiles> <MobileNo>07123456701</MobileNo> </Mobiles> </Msg>"; $doc = new DOMDocument(); $doc->loadXML($xml); $xpath = new DOMXPath($doc); var_dump( $xpath->evaluate("string(//AccountID)"), $xpath->evaluate("string(//Password)"), $xpath->evaluate("string(//Message)") );
Output for git.master_jit, git.master, rfc.property-hooks
string(9) "123456789" string(9) "barfoo123" string(12) "test message"

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