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";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pFEa2
function name:  (null)
number of ops:  36
compiled vars:  !0 = $xmlstr, !1 = $xml, !2 = $a, !3 = $item, !4 = $jw
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3Crss+version%3D%222.0%22+xmlns%3Ajwplayer%3D%22http%3A%2F%2Frss.jwpcdn.com%2F%22%3E%0A%3Cchannel%3E%0A+%0A++%3Citem%3E%0A++++%3Ctitle%3EApril+5%2C+2019%3C%2Ftitle%3E%0A++++%3Cdescription%3EJane+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%26%23039%3Bt+reopen+the+new+North+American+trade+deal.%3C%2Fdescription%3E%0A++++%3Cjwplayer%3Aimage%3Ehttp%3A%2F%2Fmedia.cpac.ca%2F_app_images%2Ftip_player_poster.png%3C%2Fjwplayer%3Aimage%3E%0A++++%3Cjwplayer%3Asource+file%3D%22http%3A%2F%2Fwww.cpac.ca%2Ftip-podcast%2F1554459161.mp3%22+%2F%3E%0A++%3C%2Fitem%3E%0A+%0A++%3Citem%3E%0A++++%3Ctitle%3EApril+4%2C+2019%3C%2Ftitle%3E%0A++++%3Cdescription%3EThe+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%26%23039%3B+decision.+Members+of+the+%26quot%3BDaughters+of+the+Vote%26quot%3B+turn+their+backs+on+the+Prime+Minister%2C+and+walk+out+on+Andrew+Scheer.%3C%2Fdescription%3E%0A++++%3Cjwplayer%3Aimage%3Ehttp%3A%2F%2Fmedia.cpac.ca%2F_app_images%2Ftip_player_poster.png%3C%2Fjwplayer%3Aimage%3E%0A++++%3Cjwplayer%3Asource+file%3D%22http%3A%2F%2Fwww.cpac.ca%2Ftip-podcast%2F1554372812.mp3%22+%2F%3E%0A++%3C%2Fitem%3E%0A+%0A++%3Citem%3E%0A++++%3Ctitle%3EApril+3%2C+2019%3C%2Ftitle%3E%0A++++%3Cdescription%3EJody+Wilson-Raybould+and+Jane+Philpott+are+removed+from+the+Liberal+Caucus.+Gerald+Butts+submits+text+messages%2C+and+other+evidence%2C+to+the+justice+committee.+The+Environment+Commissioner+says+Canada+isn%26%23039%3Bt+doing+enough+to+fight+climate+change.+%3C%2Fdescription%3E%0A++++%3Cjwplayer%3Aimage%3Ehttp%3A%2F%2Fmedia.cpac.ca%2F_app_images%2Ftip_player_poster.png%3C%2Fjwplayer%3Aimage%3E%0A++++%3Cjwplayer%3Asource+file%3D%22http%3A%2F%2Fwww.cpac.ca%2Ftip-podcast%2F1554286033.mp3%22+%2F%3E%0A++%3C%2Fitem%3E%0A+%0A++%3Citem%3E%0A++++%3Ctitle%3EApril+2%2C+2019%3C%2Ftitle%3E%0A++++%3Cdescription%3ELiberal+MPs+react+strongly+to+Jody+Wilson-Raybould%26%23039%3Bs+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%2C+a+new+report+reveals+the+urgency+of+reducing+emissions.%3C%2Fdescription%3E%0A++++%3Cjwplayer%3Aimage%3Ehttp%3A%2F%2Fmedia.cpac.ca%2F_app_images%2Ftip_player_poster.png%3C%2Fjwplayer%3Aimage%3E%0A++++%3Cjwplayer%3Asource+file%3D%22http%3A%2F%2Fwww.cpac.ca%2Ftip-podcast%2F1554199097.mp3%22+%2F%3E%0A++%3C%2Fitem%3E%0A+%0A++%3Citem%3E%0A++++%3Ctitle%3EApril+1%2C+2019%3C%2Ftitle%3E%0A++++%3Cdescription%3EAs+Parliament+resumes%2C+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%26%23039%3Bs+election+campaign.+%3C%2Fdescription%3E%0A++++%3Cjwplayer%3Aimage%3Ehttp%3A%2F%2Fmedia.cpac.ca%2F_app_images%2Ftip_player_poster.png%3C%2Fjwplayer%3Aimage%3E%0A++++%3Cjwplayer%3Asource+file%3D%22http%3A%2F%2Fwww.cpac.ca%2Ftip-podcast%2F1554114120.mp3%22+%2F%3E%0A++%3C%2Fitem%3E%0A%3C%2Fchannel%3E%0A%3C%2Frss%3E%0A%09'
   45     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !1, $6
   46     5        ASSIGN                                                   !2, 3
   47     6        SUB                                              ~11     !2, 1
          7        FETCH_OBJ_R                                      ~9      !1, 'channel'
          8        FETCH_OBJ_R                                      ~10     ~9, 'item'
          9        FETCH_DIM_R                                      ~12     ~10, ~11
         10        ASSIGN                                                   !3, ~12
   48    11        FETCH_OBJ_R                                      ~14     !3, 'title'
         12        CONCAT                                           ~15     'Title%3A+', ~14
         13        CONCAT                                           ~16     ~15, '%0A'
         14        ECHO                                                     ~16
   49    15        FETCH_OBJ_R                                      ~17     !3, 'description'
         16        CONCAT                                           ~18     'Description%3A+', ~17
         17        CONCAT                                           ~19     ~18, '%0A'
         18        ECHO                                                     ~19
   50    19        INIT_METHOD_CALL                                         !3, 'children'
         20        SEND_VAL_EX                                              'jwplayer'
         21        SEND_VAL_EX                                              <true>
         22        DO_FCALL                                      0  $20     
         23        ASSIGN                                                   !4, $20
   51    24        FETCH_OBJ_R                                      ~22     !4, 'image'
         25        CONCAT                                           ~23     'Image%3A+', ~22
         26        CONCAT                                           ~24     ~23, '%0A'
         27        ECHO                                                     ~24
   52    28        FETCH_OBJ_R                                      ~25     !4, 'source'
         29        INIT_METHOD_CALL                                         ~25, 'attributes'
         30        DO_FCALL                                      0  $26     
         31        FETCH_OBJ_R                                      ~27     $26, 'file'
         32        CONCAT                                           ~28     'Source%3A+', ~27
         33        CONCAT                                           ~29     ~28, '%0A'
         34        ECHO                                                     ~29
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.39 ms | 1404 KiB | 15 Q