3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rss ='<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/"> <channel> <item> <media:content url="http://blog.com/image1.jpg" width="661" height="310"/> </item> </channel> </rss>'; $xml = simplexml_load_string($rss); $urls = $xml->xpath('/rss/channel/item/media:content'); echo $urls[0]->attributes()->url; foreach ($urls as $url) { echo $url->attributes()->url; }
Output for git.master, git.master_jit, rfc.property-hooks
http://blog.com/image1.jpghttp://blog.com/image1.jpg

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:
29.11 ms | 405 KiB | 5 Q