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>"); $croobly_data = $croobly_data->xpath('medias'); foreach($croobly_data->children() as $media) { print_r($media); //echo $media->asXML(); } //print_r($croobly_data);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to a member function children() on array in /in/A6fDE:7 Stack trace: #0 {main} thrown in /in/A6fDE on line 7
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
35.11 ms | 401 KiB | 8 Q