3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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);

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
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
Output for Array change keys
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
Output for Lexical anon
Catchable fatal error: Call to a member function children() on array in /in/A6fDE on line 7

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