3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<rss> <channel> <title>Breaking News - Racer X Online</title> <link>http://racerxonline.com/</link> <description> Racer X Online is the top source for breaking motocross and supercross news. </description> <lastBuildDate>Thu, 09 Apr 2015 02:07:26 -0400</lastBuildDate> <ttl>10</ttl> <language>En</language> <atom:link href="http://racerxonline.com/feeds/rss/category/breaking-news" rel="self" type="application/rss+xml"/> <copyright>Copyright 2015 - Racer X Online</copyright> <image> <link>http://racerxonline.com/</link> <title>Breaking News - Racer X Online</title> <url>http://rx.iscdn.net/i/logos/racer-x-thumb.png</url> </image> <item> <title>Houston Animated Track Map</title> <link> http://racerxonline.com/2015/04/08/houston-animated-track-map?utm_medium=RSS&utm_source=Feed&utm_campaign=Breaking+News+-+Racer+X+Online </link> <guid> http://racerxonline.com/2015/04/08/houston-animated-track-map </guid> <pubDate>Wed, 08 Apr 2015 13:00:00 -0400</pubDate> <description> <![CDATA[ Take a lap with the green arrow. ]]> </description> <media:content url="//rx.iscdn.net/2015/04/96341_rd14_houston01thumb.jpg" type="image/jpeg" medium="image"/> </item> </channel> </rss>'; $rss = simplexml_load_string($xml); foreach( $rss->channel->item as $child) { echo $child . "\n"; }

preferences:
38.96 ms | 402 KiB | 5 Q