3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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); $id = 1; $post = $xml->post[$id]; echo $post->title;
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Hello Again
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: simplexml_load_string() in /in/KOiv2 on line 18
Process exited with code 255.
Output for 4.3.2 - 4.4.1, 4.4.3 - 4.4.4
Fatal error: Call to undefined function: simplexml_load_string() in /in/KOiv2 on line 18
Process exited with code 255.
Output for 4.4.2
Fatal error: Call to undefined function: simplexml_load_string() in /in/KOiv2 on line 19
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: simplexml_load_string() in /in/KOiv2 on line 18