3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xmlRoot = new SimpleXMLElement('<habrauser> <error>404</error> </habrauser>'); $e = $xmlRoot->xpath('/habrauser/error'); var_dump($e);
Output for 5.3.0 - 5.3.29, 5.5.27 - 5.5.38, 5.6.11 - 5.6.30, hhvm-3.12.14 - 3.17.3, 7.0.0 - 7.2.0
array(1) { [0]=> object(SimpleXMLElement)#2 (1) { [0]=> string(3) "404" } }
Output for 5.4.0 - 5.5.26, 5.6.0 - 5.6.10, hhvm-3.10.1 - 3.11.1
array(1) { [0]=> object(SimpleXMLElement)#2 (0) { } }