3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE note [ <!ENTITY company "Example Corp"> <!ENTITY company2 "Example Corp222"> <!ENTITY test SYSTEM "file:///etc/passwd"> <!ENTITY xxe SYSTEM "expect://"> ]> <note> <to>__&test;__</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> XML; //libxml_disable_entity_loader(true); $dom = simplexml_load_string($xml, null); print_r($dom);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ieam1
function name:  (null)
number of ops:  10
compiled vars:  !0 = $xml, !1 = $dom
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%271.0%27+encoding%3D%27UTF-8%27+%3F%3E%0A%0A%3C%21DOCTYPE+note+%5B%0A++++%3C%21ENTITY+company+%22Example+Corp%22%3E%0A++++%3C%21ENTITY+company2+%22Example+Corp222%22%3E%0A++++%3C%21ENTITY+test+SYSTEM+%22file%3A%2F%2F%2Fetc%2Fpasswd%22%3E%0A++++%3C%21ENTITY+xxe+SYSTEM+%22expect%3A%2F%2F%22%3E%0A%5D%3E%0A%0A%3Cnote%3E%0A++++%3Cto%3E__%26test%3B__%3C%2Fto%3E%0A++++%3Cfrom%3EJani%3C%2Ffrom%3E%0A++++%3Cheading%3EReminder%3C%2Fheading%3E%0A++++%3Cbody%3EDon%27t+forget+me+this+weekend%21%3C%2Fbody%3E%0A%3C%2Fnote%3E'
   22     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 null
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
   23     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.93 ms | 997 KiB | 15 Q