3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<root><node><node>stuff</node><node>stuff</node><anothernode>more stuff</anothernode></node></root>"; $xml = simplexml_load_string($xml); var_dump(json_encode($xml));

preferences:
36.1 ms | 402 KiB | 5 Q