3v4l.org

run code in 500+ PHP versions simultaneously
<?php $buffer = <<<XML <tr> <td>http://www.example.co.uk/the-view-from-22/feed/</td> <td>Example Blogs » The View from 22 » Example Blogs</td> <td>http://blogs.example.co.uk/</td> <td><![CDATA[Listen: The Example&rsquo;s verdict on the debate]]></td> <td>http://blogs.example.co.uk/coffeehouse/2015/04/podcast-special-the-debate/</td> </tr> XML; $xml = simplexml_load_string($buffer); $xml->asXML('php://output'); $doc = new DOMDocument(); $doc->presverWhitespace = false; $doc->formatOutput = true; $doc->loadXML($xml->asXML()); $doc->save('php://output');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K6LkS
function name:  (null)
number of ops:  24
compiled vars:  !0 = $buffer, !1 = $xml, !2 = $doc
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%3Ctr%3E%0A++++%3Ctd%3Ehttp%3A%2F%2Fwww.example.co.uk%2Fthe-view-from-22%2Ffeed%2F%3C%2Ftd%3E%0A++++%3Ctd%3EExample+Blogs+%C2%BB+The+View+from+22+%C2%BB+Example+Blogs%3C%2Ftd%3E%0A++++%3Ctd%3Ehttp%3A%2F%2Fblogs.example.co.uk%2F%3C%2Ftd%3E%0A++++%3Ctd%3E%3C%21%5BCDATA%5BListen%3A+The+Example%26rsquo%3Bs+verdict+on+the+debate%5D%5D%3E%3C%2Ftd%3E%0A++++%3Ctd%3Ehttp%3A%2F%2Fblogs.example.co.uk%2Fcoffeehouse%2F2015%2F04%2Fpodcast-special-the-debate%2F%3C%2Ftd%3E%0A%3C%2Ftr%3E'
   13     1        INIT_FCALL                                                   'simplexml_load_string'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $4      
          4        ASSIGN                                                       !1, $4
   14     5        INIT_METHOD_CALL                                             !1, 'asXML'
          6        SEND_VAL_EX                                                  'php%3A%2F%2Foutput'
          7        DO_FCALL                                          0          
   16     8        NEW                                                  $7      'DOMDocument'
          9        DO_FCALL                                          0          
         10        ASSIGN                                                       !2, $7
   17    11        ASSIGN_OBJ                                                   !2, 'presverWhitespace'
         12        OP_DATA                                                      <false>
   18    13        ASSIGN_OBJ                                                   !2, 'formatOutput'
         14        OP_DATA                                                      <true>
   19    15        INIT_METHOD_CALL                                             !2, 'loadXML'
         16        INIT_METHOD_CALL                                             !1, 'asXML'
         17        DO_FCALL                                          0  $12     
         18        SEND_VAR_NO_REF_EX                                           $12
         19        DO_FCALL                                          0          
   20    20        INIT_METHOD_CALL                                             !2, 'save'
         21        SEND_VAL_EX                                                  'php%3A%2F%2Foutput'
         22        DO_FCALL                                          0          
         23      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.06 ms | 3652 KiB | 14 Q