3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new SimpleXMLElement('<root><elements attr="test"><el>test1</el><el>test2</el><el test_attr="123">test3</el></elements></root>'); var_dump( $xml, $xml->elements->el[2] );

preferences:
11.02 ms | 408 KiB | 5 Q