3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = <<<XML <?xml version="1.0" encoding="utf-8"?> <posts> <post> <title>Hello World</title> <author>tacticalsk8er</author> <content>Hello world this is my blogging site</content> </post> <post> <title>Hello Again</title> <author>Nick Peterson</author> <content><![CDATA[Hello Again world this is another test for my <b>blogging site</b>]]></content> </post> </posts> XML; $xml = simplexml_load_string($x); echo $xml->post[1]->title;

preferences:
37.54 ms | 402 KiB | 5 Q