3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $xml = <<<XML <bookstore> <book category = "COOKING"> <title lang = "en">Everyday Italian</title> <author>Giada De Laurentiis</author> <year>2005</year> <price>30.00</price> </book> <book category = "CHILDREN"> <title lang = "en">Harry Potter</title> <author>J K. Rowling</author> <year>2005</year> <price>29.99</price> </book> <book category = "WEB"> <title lang = "en">Learning XML</title> <author>Erik T. Ray</author> <year>2003</year> <price>39.95</price> </book> </bookstore> XML; $handle = simplexml_load_string($xml);
Output for 5.0.0 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Output for 4.4.5 - 4.4.9
<br /> <b>Fatal error</b>: Call to undefined function: simplexml_load_string() in <b>/in/HNrAQ</b> on line <b>26</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.1, 4.4.3 - 4.4.4
<br /> <b>Fatal error</b>: Call to undefined function: simplexml_load_string() in <b>/in/HNrAQ</b> on line <b>26</b><br />
Process exited with code 255.
Output for 4.4.2
<br /> <b>Fatal error</b>: Call to undefined function: simplexml_load_string() in <b>/in/HNrAQ</b> on line <b>27</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Call to undefined function: simplexml_load_string() in <b>/in/HNrAQ</b> on line <b>26</b><br />