3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $xml = "<?xml version="1.0"?> <QuotationStructure> <test><a>1</a></test> <test><b>1</b></test> </QuotationStructure>"; $test = DOMDocument::loadXML($xml); $xp = new DOMXPath($test); print_r($xp->query('/*/test'));
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected '1.0' (T_DNUMBER) in /in/EFqdW on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_DNUMBER in /in/EFqdW on line 2
Process exited with code 255.