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"; }
Output for git.master, git.master_jit
Warning: simplexml_load_string(): namespace error : Namespace prefix atom on link is not defined in /in/RP5D9 on line 35 Warning: simplexml_load_string(): line.com/feeds/rss/category/breaking-news" rel="self" type="application/rss+xml" in /in/RP5D9 on line 35 Warning: simplexml_load_string(): ^ in /in/RP5D9 on line 35 Warning: simplexml_load_string(): Entity: line 21: parser error : EntityRef: expecting ';' in /in/RP5D9 on line 35 Warning: simplexml_load_string(): racerxonline.com/2015/04/08/houston-animated-track-map?utm_medium=RSS&utm_source in /in/RP5D9 on line 35 Warning: simplexml_load_string(): ^ in /in/RP5D9 on line 35 Warning: simplexml_load_string(): Entity: line 21: parser error : EntityRef: expecting ';' in /in/RP5D9 on line 35 Warning: simplexml_load_string(): 015/04/08/houston-animated-track-map?utm_medium=RSS&utm_source=Feed&utm_campaign in /in/RP5D9 on line 35 Warning: simplexml_load_string(): ^ in /in/RP5D9 on line 35 Warning: simplexml_load_string(): namespace error : Namespace prefix media on content is not defined in /in/RP5D9 on line 35 Warning: simplexml_load_string(): scdn.net/2015/04/96341_rd14_houston01thumb.jpg" type="image/jpeg" medium="image" in /in/RP5D9 on line 35 Warning: simplexml_load_string(): ^ in /in/RP5D9 on line 35 Warning: Attempt to read property "channel" on bool in /in/RP5D9 on line 36 Warning: Attempt to read property "item" on null in /in/RP5D9 on line 36 Warning: foreach() argument must be of type array|object, null given in /in/RP5D9 on line 36
Output for rfc.property-hooks
Warning: simplexml_load_string(): namespace error : Namespace prefix atom on link is not defined in /in/RP5D9 on line 35 Warning: simplexml_load_string(): line.com/feeds/rss/category/breaking-news" rel="self" type="application/rss+xml" in /in/RP5D9 on line 35 Warning: simplexml_load_string(): ^ in /in/RP5D9 on line 35 Warning: simplexml_load_string(): Entity: line 21: parser error : EntityRef: expecting ';' in /in/RP5D9 on line 35 Warning: simplexml_load_string(): racerxonline.com/2015/04/08/houston-animated-track-map?utm_medium=RSS&utm_source in /in/RP5D9 on line 35 Warning: simplexml_load_string(): ^ in /in/RP5D9 on line 35 Warning: simplexml_load_string(): Entity: line 21: parser error : EntityRef: expecting ';' in /in/RP5D9 on line 35 Warning: simplexml_load_string(): 015/04/08/houston-animated-track-map?utm_medium=RSS&utm_source=Feed&utm_campaign in /in/RP5D9 on line 35 Warning: simplexml_load_string(): ^ in /in/RP5D9 on line 35 Warning: simplexml_load_string(): namespace error : Namespace prefix media on content is not defined in /in/RP5D9 on line 35 Warning: simplexml_load_string(): scdn.net/2015/04/96341_rd14_houston01thumb.jpg" type="image/jpeg" medium="image" in /in/RP5D9 on line 35 Warning: simplexml_load_string(): ^ in /in/RP5D9 on line 35 Warning: Attempt to read property "channel" on false in /in/RP5D9 on line 36 Warning: Attempt to read property "item" on null in /in/RP5D9 on line 36 Warning: foreach() argument must be of type array|object, null given in /in/RP5D9 on line 36

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:
72.33 ms | 405 KiB | 8 Q