3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE strony [ <!ENTITY shp SYSTEM "/etc/passwd"> ] > <strony> <strona id="sekurak"> <nazwa>Sekurak</nazwa> <url>http://www.sekurak.pl/</url> <komentarz>I &lt;3 Sekurak! &shp;</komentarz> </strona> </strony>'; libxml_disable_entity_loader (false); $strony = new SimpleXMLElement($xml, LIBXML_NOENT); foreach($strony->strona->komentarz as $komentarz) echo "$komentarz\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/XKfq7
function name:  (null)
number of ops:  19
compiled vars:  !0 = $xml, !1 = $strony, !2 = $komentarz
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%3C%21DOCTYPE+strony+%5B+%0A++%3C%21ENTITY+shp+SYSTEM+%22%2Fetc%2Fpasswd%22%3E%0A%5D+%3E%0A%3Cstrony%3E%0A%09%3Cstrona+id%3D%22sekurak%22%3E%0A%09%09%3Cnazwa%3ESekurak%3C%2Fnazwa%3E%0A%09%09%3Curl%3Ehttp%3A%2F%2Fwww.sekurak.pl%2F%3C%2Furl%3E%0A%09%09%3Ckomentarz%3EI+%26lt%3B3+Sekurak%21+%26shp%3B%3C%2Fkomentarz%3E%0A%09%3C%2Fstrona%3E%0A%3C%2Fstrony%3E'
   14     1        INIT_FCALL                                               'libxml_disable_entity_loader'
          2        SEND_VAL                                                 <false>
          3        DO_FCALL_BY_NAME                                         
   15     4        NEW                                              $5      'SimpleXMLElement'
          5        SEND_VAR_EX                                              !0
          6        SEND_VAL_EX                                              2
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $5
   16     9        FETCH_OBJ_R                                      ~8      !1, 'strona'
         10        FETCH_OBJ_R                                      ~9      ~8, 'komentarz'
         11      > FE_RESET_R                                       $10     ~9, ->17
         12    > > FE_FETCH_R                                               $10, !2, ->17
   17    13    >   NOP                                                      
         14        FAST_CONCAT                                      ~11     !2, '%0A'
         15        ECHO                                                     ~11
   16    16      > JMP                                                      ->12
         17    >   FE_FREE                                                  $10
   17    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.4 ms | 1395 KiB | 15 Q