3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $goodXML = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!DOCTYPE foo [ <!ELEMENT foo ANY ><!ENTITY xxe SYSTEM "http://0x.rs/test" >]><foo>&xxe;</foo><test><testing>my value</testing></test>'; $doc = simplexml_load_string($goodXml); echo $doc->testing;
based on qSmjC
Output for 7.2.6 - 7.3.0beta1
Notice: Undefined variable: goodXml in /in/MPDZ5 on line 4 Notice: Trying to get property 'testing' of non-object in /in/MPDZ5 on line 5
Output for 5.0.4 - 7.1.20
Notice: Undefined variable: goodXml in /in/MPDZ5 on line 4 Notice: Trying to get property of non-object in /in/MPDZ5 on line 5
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: goodXml in /in/MPDZ5 on line 4 Notice: Trying to get property of non-object in /in/MPDZ5 on line 5
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: simplexml_load_string() in /in/MPDZ5 on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: simplexml_load_string() in /in/MPDZ5 on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: simplexml_load_string() in /in/MPDZ5 on line 4