3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sx = simplexml_load_string('<foo xmlns="https://example.com"><bar><baz>Hello</baz></bar></foo>'); $sx->registerXpathNamespace('something', 'https://example.com'); echo $sx->xpath('//something:baz')[0];

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
226.96 ms | 1983 KiB | 11 Q