3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xml = <<<xml <?xml version="1.0" encoding="utf-8"?> <RESPONSE> <e></e> <e1> </e1> <e2> s </e2> <e3>s</e3> <e4> </e4> </RESPONSE> xml; $simpleXmlObj = simplexml_load_string($xml); $response = xml2array($simpleXmlObj); print_r($response);
based on r99EI
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function xml2array() in /in/SFg8I:15 Stack trace: #0 {main} thrown in /in/SFg8I on line 15
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Fatal error: Call to undefined function xml2array() in /in/SFg8I on line 15
Process exited with code 255.