3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlstr = '<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:jwplayer="http://rss.jwpcdn.com/"> <channel> <item> <title>April 5, 2019</title> <description>Jane Philpott and Jody Wilson-Raybould say the Prime Minister should have apologized. The new attorney general says he will resist any attempts at political pressure. And Chrystia Freeland says Canada won&#039;t reopen the new North American trade deal.</description> <jwplayer:image>http://media.cpac.ca/_app_images/tip_player_poster.png</jwplayer:image> <jwplayer:source file="http://www.cpac.ca/tip-podcast/1554459161.mp3" /> </item> <item> <title>April 4, 2019</title> <description>The Prime Minister defends the removal of two former cabinet ministers from the Liberal caucus. Jane Philpott and Jody Wilson-Raybould speak out about the Prime Ministers&#039; decision. Members of the &quot;Daughters of the Vote&quot; turn their backs on the Prime Minister, and walk out on Andrew Scheer.</description> <jwplayer:image>http://media.cpac.ca/_app_images/tip_player_poster.png</jwplayer:image> <jwplayer:source file="http://www.cpac.ca/tip-podcast/1554372812.mp3" /> </item> <item> <title>April 3, 2019</title> <description>Jody Wilson-Raybould and Jane Philpott are removed from the Liberal Caucus. Gerald Butts submits text messages, and other evidence, to the justice committee. The Environment Commissioner says Canada isn&#039;t doing enough to fight climate change. </description> <jwplayer:image>http://media.cpac.ca/_app_images/tip_player_poster.png</jwplayer:image> <jwplayer:source file="http://www.cpac.ca/tip-podcast/1554286033.mp3" /> </item> <item> <title>April 2, 2019</title> <description>Liberal MPs react strongly to Jody Wilson-Raybould&#039;s decision to record her conversation with Michael Wernick. The opposition threatens more delays over SNC-Lavalin. And as carbon pricing takes effect in four provinces, a new report reveals the urgency of reducing emissions.</description> <jwplayer:image>http://media.cpac.ca/_app_images/tip_player_poster.png</jwplayer:image> <jwplayer:source file="http://www.cpac.ca/tip-podcast/1554199097.mp3" /> </item> <item> <title>April 1, 2019</title> <description>As Parliament resumes, the recorded conversation between Jody Wilson-Raybould and Michael Wernick is expected to dominate Question Period. The Opposition continues to speak out as carbon pricing going into effect today in four provinces. The prospect of separation is raised in Alberta&#039;s election campaign. </description> <jwplayer:image>http://media.cpac.ca/_app_images/tip_player_poster.png</jwplayer:image> <jwplayer:source file="http://www.cpac.ca/tip-podcast/1554114120.mp3" /> </item> </channel> </rss> '; $xml = simplexml_load_string($xmlstr); $a = 3; $item = $xml->channel->item[$a-1]; echo "Title: " . $item->title . "\n"; echo "Description: " . $item->description . "\n"; $jw = $item->children('jwplayer', true); echo "Image: " . $jw->image . "\n"; echo "Source: " . $jw->source->attributes()->file . "\n";
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Title: April 3, 2019 Description: Jody Wilson-Raybould and Jane Philpott are removed from the Liberal Caucus. Gerald Butts submits text messages, and other evidence, to the justice committee. The Environment Commissioner says Canada isn't doing enough to fight climate change. Image: http://media.cpac.ca/_app_images/tip_player_poster.png Source: http://www.cpac.ca/tip-podcast/1554286033.mp3
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Title: April 3, 2019 Description: Jody Wilson-Raybould and Jane Philpott are removed from the Liberal Caucus. Gerald Butts submits text messages, and other evidence, to the justice committee. The Environment Commissioner says Canada isn't doing enough to fight climate change. Image: http://media.cpac.ca/_app_images/tip_player_poster.png Source: http://www.cpac.ca/tip-podcast/1554286033.mp3

preferences:
151.55 ms | 402 KiB | 225 Q