3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contentData = '<texts><text_0_0><![CDATA[1]]></text_0_0><text_3_0><![CDATA[4]]></text_3_0><text_1_0><![CDATA[2]]></text_1_0><text_4_0><![CDATA[5]]></text_4_0><text_2_0><![CDATA[3]]></text_2_0></texts><medias><image_1_0><![CDATA[http://teste.croobly.com.br/module-content/images/1699789387.jpg]]></image_1_0><image_0_0><![CDATA[http://teste.croobly.com.br/module-content/images/1699802460.jpg]]></image_0_0><image_3_0><![CDATA[http://teste.croobly.com.br/module-content/images/1699734945.jpg]]></image_3_0><image_4_0><![CDATA[http://teste.croobly.com.br/module-content/images/1699720579.jpg]]></image_4_0><image_2_0><![CDATA[http://teste.croobly.com.br/module-content/images/1699775071.jpg]]></image_2_0></medias>'; $dom = new DOMDocument(); $dom->loadXML('<content>'.$contentData.'</content>'); $dom = $dom->getElementsByTagName("medias"); var_dump($dom->child()); /*foreach ($dom as $image) { $fileName = substr(strrchr($image->nodeValue, "/"), 1); echo '----------------------'; echo $image->nodeValue, PHP_EOL; //echo $value, PHP_EOL; //unlink($path.$fileName); }*/
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined method DOMNodeList::child() in /in/jhtrM:7 Stack trace: #0 {main} thrown in /in/jhtrM 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:
33.89 ms | 401 KiB | 8 Q