3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contentData = '<texts><text_0_1><![CDATA[Conteúdo de texto aleatório. 16:41. <BR>14/11/2013]]></text_0_1></texts><medias><image_0_0><![CDATA[http://teste.croobly.com.br/module-content/images/1476978532.jpg]]></image_0_0></medias>'; $croobly_data = simplexml_load_string("<content>".$contentData."</content>"); print_r($croobly_data);
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
SimpleXMLElement Object ( [texts] => SimpleXMLElement Object ( [text_0_1] => SimpleXMLElement Object ( ) ) [medias] => SimpleXMLElement Object ( [image_0_0] => SimpleXMLElement Object ( ) ) )
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: simplexml_load_string() in /in/siscu on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Fatal error: Call to undefined function: simplexml_load_string() in /in/siscu on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: simplexml_load_string() in /in/siscu on line 4

preferences:
234.41 ms | 401 KiB | 398 Q