3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $source = "<?xml version='1.0' encoding='UTF-8'?><entry><id>http://gdata.youtube.com/feeds/api/videos/F0MA2VONrCo</id><published>2013-06-18T22:02:49.000Z</published><updated>2013-06-18T22:29:46.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Games' label='Gaming'/><title type='text'>FIFA LIVESTREAM W/ MGH</title><content type='text'>http://www.twitch.tv/gudjondaniel http://www.twitch.tv/gudjondaniel http://www.twitch.tv/gudjondaniel http://www.youtube.com/mgh</content><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=F0MA2VONrCo&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.responses' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/F0MA2VONrCo/responses'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/F0MA2VONrCo/related'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=F0MA2VONrCo'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/gudjondaniel/uploads/F0MA2VONrCo'/><author><name>GudjonDaniel</name><uri>http://gdata.youtube.com/feeds/api/users/GudjonDaniel</uri></author><gd:comments><gd:feedLink rel='http://gdata.youtube.com/schemas/2007#comments' href='http://gdata.youtube.com/feeds/api/videos/F0MA2VONrCo/comments' countHint='22'/></gd:comments><yt:hd/><media:group><media:category label='Gaming' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Games</media:category><media:content url='http://www.youtube.com/v/F0MA2VONrCo?version=3&amp;f=user_uploads&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='5' yt:format='5'/><media:content url='rtsp://r2---sn-a5m7zu7l.c.youtube.com/CigLENy73wIaHwkqrI1T2QBDFxMYDSANFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='5' yt:format='1'/><media:content url='rtsp://r2---sn-a5m7zu7l.c.youtube.com/CigLENy73wIaHwkqrI1T2QBDFxMYESARFEgGUgx1c2VyX3VwbG9hZHMM/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='5' yt:format='6'/><media:description type='plain'>http://www.twitch.tv/gudjondaniel http://www.twitch.tv/gudjondaniel http://www.twitch.tv/gudjondaniel http://www.youtube.com/mgh</media:description><media:keywords/><media:player url='http://www.youtube.com/watch?v=F0MA2VONrCo&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i3.ytimg.com/vi/F0MA2VONrCo/0.jpg' height='360' width='480' time='00:00:02.500'/><media:thumbnail url='http://i3.ytimg.com/vi/F0MA2VONrCo/1.jpg' height='90' width='120' time='00:00:01.250'/><media:thumbnail url='http://i3.ytimg.com/vi/F0MA2VONrCo/2.jpg' height='90' width='120' time='00:00:02.500'/><media:thumbnail url='http://i3.ytimg.com/vi/F0MA2VONrCo/3.jpg' height='90' width='120' time='00:00:03.750'/><media:title type='plain'>FIFA LIVESTREAM W/ MGH</media:title><yt:duration seconds='5'/></media:group><gd:rating average='4.8' max='5' min='1' numRaters='40' rel='http://schemas.google.com/g/2005#overall'/><yt:statistics favoriteCount='0' viewCount='301'/></entry>"; $xml = new SimpleXMLElement($source); $title = $xml->entry->title; var_dump($xml->entry);
Output for 5.1.0 - 5.6.21, 7.0.0 - 7.1.0
Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix gd on comments is not defined in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): http://gdata.youtube.com/feeds/api/users/GudjonDaniel</uri></author><gd:comments in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ^ in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix gd on feedLink is not defined in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ='http://gdata.youtube.com/feeds/api/videos/F0MA2VONrCo/comments' countHint='22' in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ^ in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix yt on hd is not defined in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): .com/feeds/api/videos/F0MA2VONrCo/comments' countHint='22'/></gd:comments><yt:hd in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ^ in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix media on group is not defined in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): /videos/F0MA2VONrCo/comments' countHint='22'/></gd:comments><yt:hd/><media:group in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ^ in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix media on category is not defined in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ory label='Gaming' scheme='http://gdata.youtube.com/schemas/2007/categories.cat' in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ^ in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix yt for format on content is not defined in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): sh' medium='video' isDefault='true' expression='full' duration='5' yt:format='5' in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ^ in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix media on content is not defined in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): sh' medium='video' isDefault='true' expression='full' duration='5' yt:format='5' in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ^ in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix yt for format on content is not defined in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): p' type='video/3gpp' medium='video' expression='full' duration='5' yt:format='1' in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ^ in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix media on content is not defined in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): p' type='video/3gpp' medium='video' expression='full' duration='5' yt:format='1' in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ^ in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix yt for format on content is not defined in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): p' type='video/3gpp' medium='video' expression='full' duration='5' yt:format='6' in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ^ in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix media on content is not defined in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): p' type='video/3gpp' medium='video' expression='full' duration='5' yt:format='6' in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ^ in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix media on description is not defined in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): o' expression='full' duration='5' yt:format='6'/><media:description type='plain' in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ^ in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix media on keywords is not defined in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): http://www.youtube.com/mgh</media:description><media:keywords/><media:player url in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ^ in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix media on player is not defined in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): rl='http://www.youtube.com/watch?v=F0MA2VONrCo&amp;feature=youtube_gdata_player' in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ^ in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix media on thumbnail is not defined in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): /i3.ytimg.com/vi/F0MA2VONrCo/0.jpg' height='360' width='480' time='00:00:02.500' in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ^ in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix media on thumbnail is not defined in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): //i3.ytimg.com/vi/F0MA2VONrCo/1.jpg' height='90' width='120' time='00:00:01.250' in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ^ in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix media on thumbnail is not defined in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): //i3.ytimg.com/vi/F0MA2VONrCo/2.jpg' height='90' width='120' time='00:00:02.500' in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ^ in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix media on thumbnail is not defined in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): //i3.ytimg.com/vi/F0MA2VONrCo/3.jpg' height='90' width='120' time='00:00:03.750' in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ^ in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix media on title is not defined in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): Co/3.jpg' height='90' width='120' time='00:00:03.750'/><media:title type='plain' in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ^ in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix yt on duration is not defined in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): :title type='plain'>FIFA LIVESTREAM W/ MGH</media:title><yt:duration seconds='5' in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ^ in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix gd on rating is not defined in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): 8' max='5' min='1' numRaters='40' rel='http://schemas.google.com/g/2005#overall' in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ^ in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix yt on statistics is not defined in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): mas.google.com/g/2005#overall'/><yt:statistics favoriteCount='0' viewCount='301' in /in/8VfWo on line 12 Warning: SimpleXMLElement::__construct(): ^ in /in/8VfWo on line 12 object(SimpleXMLElement)#2 (0) { }
Output for hhvm-3.12.0
object(SimpleXMLElement)#2 (0) { } namespace error : Namespace prefix gd on comments is not defined http://gdata.youtube.com/feeds/api/users/GudjonDaniel</uri></author><gd:comments ^ namespace error : Namespace prefix gd on feedLink is not defined ='http://gdata.youtube.com/feeds/api/videos/F0MA2VONrCo/comments' countHint='22' ^ namespace error : Namespace prefix yt on hd is not defined .com/feeds/api/videos/F0MA2VONrCo/comments' countHint='22'/></gd:comments><yt:hd ^ namespace error : Namespace prefix media on group is not defined /videos/F0MA2VONrCo/comments' countHint='22'/></gd:comments><yt:hd/><media:group ^ namespace error : Namespace prefix media on category is not defined ory label='Gaming' scheme='http://gdata.youtube.com/schemas/2007/categories.cat' ^ namespace error : Namespace prefix yt for format on content is not defined sh' medium='video' isDefault='true' expression='full' duration='5' yt:format='5' ^ namespace error : Namespace prefix media on content is not defined sh' medium='video' isDefault='true' expression='full' duration='5' yt:format='5' ^ namespace error : Namespace prefix yt for format on content is not defined p' type='video/3gpp' medium='video' expression='full' duration='5' yt:format='1' ^ namespace error : Namespace prefix media on content is not defined p' type='video/3gpp' medium='video' expression='full' duration='5' yt:format='1' ^ namespace error : Namespace prefix yt for format on content is not defined p' type='video/3gpp' medium='video' expression='full' duration='5' yt:format='6' ^ namespace error : Namespace prefix media on content is not defined p' type='video/3gpp' medium='video' expression='full' duration='5' yt:format='6' ^ namespace error : Namespace prefix media on description is not defined o' expression='full' duration='5' yt:format='6'/><media:description type='plain' ^ namespace error : Namespace prefix media on keywords is not defined http://www.youtube.com/mgh</media:description><media:keywords/><media:player url ^ namespace error : Namespace prefix media on player is not defined rl='http://www.youtube.com/watch?v=F0MA2VONrCo&amp;feature=youtube_gdata_player' ^ namespace error : Namespace prefix media on thumbnail is not defined /i3.ytimg.com/vi/F0MA2VONrCo/0.jpg' height='360' width='480' time='00:00:02.500' ^ namespace error : Namespace prefix media on thumbnail is not defined //i3.ytimg.com/vi/F0MA2VONrCo/1.jpg' height='90' width='120' time='00:00:01.250' ^ namespace error : Namespace prefix media on thumbnail is not defined //i3.ytimg.com/vi/F0MA2VONrCo/2.jpg' height='90' width='120' time='00:00:02.500' ^ namespace error : Namespace prefix media on thumbnail is not defined //i3.ytimg.com/vi/F0MA2VONrCo/3.jpg' height='90' width='120' time='00:00:03.750' ^ namespace error : Namespace prefix media on title is not defined Co/3.jpg' height='90' width='120' time='00:00:03.750'/><media:title type='plain' ^ namespace error : Namespace prefix yt on duration is not defined :title type='plain'>FIFA LIVESTREAM W/ MGH</media:title><yt:duration seconds='5' ^ namespace error : Namespace prefix gd on rating is not defined 8' max='5' min='1' numRaters='40' rel='http://schemas.google.com/g/2005#overall' ^ namespace error : Namespace prefix yt on statistics is not defined mas.google.com/g/2005#overall'/><yt:statistics favoriteCount='0' viewCount='301' ^
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.0.5
Warning: namespace error : Namespace prefix gd on comments is not defined in /in/8VfWo on line 12 Warning: http://gdata.youtube.com/feeds/api/users/GudjonDaniel</uri></author><gd:comments in /in/8VfWo on line 12 Warning: ^ in /in/8VfWo on line 12 Warning: namespace error : Namespace prefix gd on feedLink is not defined in /in/8VfWo on line 12 Warning: ='http://gdata.youtube.com/feeds/api/videos/F0MA2VONrCo/comments' countHint='22' in /in/8VfWo on line 12 Warning: ^ in /in/8VfWo on line 12 Warning: namespace error : Namespace prefix yt on hd is not defined in /in/8VfWo on line 12 Warning: .com/feeds/api/videos/F0MA2VONrCo/comments' countHint='22'/></gd:comments><yt:hd in /in/8VfWo on line 12 Warning: ^ in /in/8VfWo on line 12 Warning: namespace error : Namespace prefix media on group is not defined in /in/8VfWo on line 12 Warning: /videos/F0MA2VONrCo/comments' countHint='22'/></gd:comments><yt:hd/><media:group in /in/8VfWo on line 12 Warning: ^ in /in/8VfWo on line 12 Warning: namespace error : Namespace prefix media on category is not defined in /in/8VfWo on line 12 Warning: ory label='Gaming' scheme='http://gdata.youtube.com/schemas/2007/categories.cat' in /in/8VfWo on line 12 Warning: ^ in /in/8VfWo on line 12 Warning: namespace error : Namespace prefix yt for format on content is not defined in /in/8VfWo on line 12 Warning: sh' medium='video' isDefault='true' expression='full' duration='5' yt:format='5' in /in/8VfWo on line 12 Warning: ^ in /in/8VfWo on line 12 Warning: namespace error : Namespace prefix media on content is not defined in /in/8VfWo on line 12 Warning: sh' medium='video' isDefault='true' expression='full' duration='5' yt:format='5' in /in/8VfWo on line 12 Warning: ^ in /in/8VfWo on line 12 Warning: namespace error : Namespace prefix yt for format on content is not defined in /in/8VfWo on line 12 Warning: p' type='video/3gpp' medium='video' expression='full' duration='5' yt:format='1' in /in/8VfWo on line 12 Warning: ^ in /in/8VfWo on line 12 Warning: namespace error : Namespace prefix media on content is not defined in /in/8VfWo on line 12 Warning: p' type='video/3gpp' medium='video' expression='full' duration='5' yt:format='1' in /in/8VfWo on line 12 Warning: ^ in /in/8VfWo on line 12 Warning: namespace error : Namespace prefix yt for format on content is not defined in /in/8VfWo on line 12 Warning: p' type='video/3gpp' medium='video' expression='full' duration='5' yt:format='6' in /in/8VfWo on line 12 Warning: ^ in /in/8VfWo on line 12 Warning: namespace error : Namespace prefix media on content is not defined in /in/8VfWo on line 12 Warning: p' type='video/3gpp' medium='video' expression='full' duration='5' yt:format='6' in /in/8VfWo on line 12 Warning: ^ in /in/8VfWo on line 12 Warning: namespace error : Namespace prefix media on description is not defined in /in/8VfWo on line 12 Warning: o' expression='full' duration='5' yt:format='6'/><media:description type='plain' in /in/8VfWo on line 12 Warning: ^ in /in/8VfWo on line 12 Warning: namespace error : Namespace prefix media on keywords is not defined in /in/8VfWo on line 12 Warning: http://www.youtube.com/mgh</media:description><media:keywords/><media:player url in /in/8VfWo on line 12 Warning: ^ in /in/8VfWo on line 12 Warning: namespace error : Namespace prefix media on player is not defined in /in/8VfWo on line 12 Warning: rl='http://www.youtube.com/watch?v=F0MA2VONrCo&amp;feature=youtube_gdata_player' in /in/8VfWo on line 12 Warning: ^ in /in/8VfWo on line 12 Warning: namespace error : Namespace prefix media on thumbnail is not defined in /in/8VfWo on line 12 Warning: /i3.ytimg.com/vi/F0MA2VONrCo/0.jpg' height='360' width='480' time='00:00:02.500' in /in/8VfWo on line 12 Warning: ^ in /in/8VfWo on line 12 Warning: namespace error : Namespace prefix media on thumbnail is not defined in /in/8VfWo on line 12 Warning: //i3.ytimg.com/vi/F0MA2VONrCo/1.jpg' height='90' width='120' time='00:00:01.250' in /in/8VfWo on line 12 Warning: ^ in /in/8VfWo on line 12 Warning: namespace error : Namespace prefix media on thumbnail is not defined in /in/8VfWo on line 12 Warning: //i3.ytimg.com/vi/F0MA2VONrCo/2.jpg' height='90' width='120' time='00:00:02.500' in /in/8VfWo on line 12 Warning: ^ in /in/8VfWo on line 12 Warning: namespace error : Namespace prefix media on thumbnail is not defined in /in/8VfWo on line 12 Warning: //i3.ytimg.com/vi/F0MA2VONrCo/3.jpg' height='90' width='120' time='00:00:03.750' in /in/8VfWo on line 12 Warning: ^ in /in/8VfWo on line 12 Warning: namespace error : Namespace prefix media on title is not defined in /in/8VfWo on line 12 Warning: Co/3.jpg' height='90' width='120' time='00:00:03.750'/><media:title type='plain' in /in/8VfWo on line 12 Warning: ^ in /in/8VfWo on line 12 Warning: namespace error : Namespace prefix yt on duration is not defined in /in/8VfWo on line 12 Warning: :title type='plain'>FIFA LIVESTREAM W/ MGH</media:title><yt:duration seconds='5' in /in/8VfWo on line 12 Warning: ^ in /in/8VfWo on line 12 Warning: namespace error : Namespace prefix gd on rating is not defined in /in/8VfWo on line 12 Warning: 8' max='5' min='1' numRaters='40' rel='http://schemas.google.com/g/2005#overall' in /in/8VfWo on line 12 Warning: ^ in /in/8VfWo on line 12 Warning: namespace error : Namespace prefix yt on statistics is not defined in /in/8VfWo on line 12 Warning: mas.google.com/g/2005#overall'/><yt:statistics favoriteCount='0' viewCount='301' in /in/8VfWo on line 12 Warning: ^ in /in/8VfWo on line 12 object(SimpleXMLElement)#2 (0) { }
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: simplexmlelement in /in/8VfWo on line 12
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: simplexmlelement in /in/8VfWo on line 12