3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str=<<<XML <configuration> <startup><supportedRuntime version="v2.0.50727"/></startup> <appSettings> <!-- timeout in seconds --> <add key="AtgStartTimeout" value="20" /> <add key="EnableHermesLogging" value="true" /> <add key="HandleIOSDevices" value="true" /> <add key="UseAMCLoyalty" value="false" /> </appSettings> </configuration> XML; $xml=simplexml_load_string($str); $result=$xml->xpath('/configuration/appSettings/add[@key='UseAMCLoyalty']/..'); foreach($result as $node) { echo $node->attributes()->id."\n"; }
Output for 5.4.0 - 5.4.14
Parse error: syntax error, unexpected 'UseAMCLoyalty' (T_STRING) in /in/WQImJ on line 16
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected T_STRING in /in/WQImJ on line 16
Process exited with code 255.