3v4l.org

run code in 300+ 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; $xml = $xml->asXML(); $xml = str_replace('&rsquo;', '&#8217;', $xml); $doc->loadXML($xml); $doc->save('php://output');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EFqUU
function name:  (null)
number of ops:  31
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                                         !1, 'asXML'
         16        DO_FCALL                                      0  $12     
         17        ASSIGN                                                   !1, $12
   20    18        INIT_FCALL                                               'str_replace'
         19        SEND_VAL                                                 '%26rsquo%3B'
         20        SEND_VAL                                                 '%26%238217%3B'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $14     
         23        ASSIGN                                                   !1, $14
   21    24        INIT_METHOD_CALL                                         !2, 'loadXML'
         25        SEND_VAR_EX                                              !1
         26        DO_FCALL                                      0          
   22    27        INIT_METHOD_CALL                                         !2, 'save'
         28        SEND_VAL_EX                                              'php%3A%2F%2Foutput'
         29        DO_FCALL                                      0          
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.81 ms | 1396 KiB | 17 Q