3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //var_dump(libxml_disable_entity_loader()); $dom = simplexml_load_string('<?xml version="1.0"?> <!DOCTYPE lolz [ <!ENTITY lol "lol"> <!ELEMENT lolz (#PCDATA)> <!ENTITY lol1 "&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;"> <!ENTITY lol2 "&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;"> <!ENTITY lol3 "&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;"> <!ENTITY lol4 "&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;"> <!ENTITY lol5 "&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;"> <!ENTITY lol6 "&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;"> <!ENTITY lol7 "&lol6;&lol6;&lol6;&lol6;&lol6;&lol6;&lol6;&lol6;&lol6;&lol6;"> <!ENTITY lol8 "&lol7;&lol7;&lol7;&lol7;&lol7;&lol7;&lol7;&lol7;&lol7;&lol7;"> <!ENTITY lol9 "&lol8;&lol8;&lol8;&lol8;&lol8;&lol8;&lol8;&lol8;&lol8;&lol8;"> ]> <lolz>&lol9;</lolz>'); var_dump($dom);
Output for 5.1.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: simplexml_load_string(): Entity: line 1: parser error : Detected an entity reference loop in /in/SMJre on line 19 Warning: simplexml_load_string(): &lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1; in /in/SMJre on line 19 Warning: simplexml_load_string(): ^ in /in/SMJre on line 19 Warning: simplexml_load_string(): Entity: line 1: parser error : Detected an entity reference loop in /in/SMJre on line 19 Warning: simplexml_load_string(): &lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2; in /in/SMJre on line 19 Warning: simplexml_load_string(): ^ in /in/SMJre on line 19 Warning: simplexml_load_string(): Entity: line 1: parser error : Detected an entity reference loop in /in/SMJre on line 19 Warning: simplexml_load_string(): &lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3; in /in/SMJre on line 19 Warning: simplexml_load_string(): ^ in /in/SMJre on line 19 Warning: simplexml_load_string(): Entity: line 1: parser error : Detected an entity reference loop in /in/SMJre on line 19 Warning: simplexml_load_string(): &lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4; in /in/SMJre on line 19 Warning: simplexml_load_string(): ^ in /in/SMJre on line 19 Warning: simplexml_load_string(): Entity: line 1: parser error : Detected an entity reference loop in /in/SMJre on line 19 Warning: simplexml_load_string(): &lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5; in /in/SMJre on line 19 Warning: simplexml_load_string(): ^ in /in/SMJre on line 19 Warning: simplexml_load_string(): Entity: line 1: parser error : Detected an entity reference loop in /in/SMJre on line 19 Warning: simplexml_load_string(): &lol6;&lol6;&lol6;&lol6;&lol6;&lol6;&lol6;&lol6;&lol6;&lol6; in /in/SMJre on line 19 Warning: simplexml_load_string(): ^ in /in/SMJre on line 19 Warning: simplexml_load_string(): Entity: line 1: parser error : Detected an entity reference loop in /in/SMJre on line 19 Warning: simplexml_load_string(): &lol7;&lol7;&lol7;&lol7;&lol7;&lol7;&lol7;&lol7;&lol7;&lol7; in /in/SMJre on line 19 Warning: simplexml_load_string(): ^ in /in/SMJre on line 19 Warning: simplexml_load_string(): Entity: line 1: parser error : Detected an entity reference loop in /in/SMJre on line 19 Warning: simplexml_load_string(): &lol8;&lol8;&lol8;&lol8;&lol8;&lol8;&lol8;&lol8;&lol8;&lol8; in /in/SMJre on line 19 Warning: simplexml_load_string(): ^ in /in/SMJre on line 19 Warning: simplexml_load_string(): Entity: line 15: parser error : Detected an entity reference loop in /in/SMJre on line 19 Warning: simplexml_load_string(): <lolz>&lol9;</lolz> in /in/SMJre on line 19 Warning: simplexml_load_string(): ^ in /in/SMJre on line 19 bool(false)
Output for hhvm-3.10.0 - 3.12.0
bool(false) Entity: line 1: parser error : Detected an entity reference loop &lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1; ^ Entity: line 1: parser error : Detected an entity reference loop &lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2; ^ Entity: line 1: parser error : Detected an entity reference loop &lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3; ^ Entity: line 1: parser error : Detected an entity reference loop &lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4; ^ Entity: line 1: parser error : Detected an entity reference loop &lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5; ^ Entity: line 1: parser error : Detected an entity reference loop &lol6;&lol6;&lol6;&lol6;&lol6;&lol6;&lol6;&lol6;&lol6;&lol6; ^ Entity: line 1: parser error : Detected an entity reference loop &lol7;&lol7;&lol7;&lol7;&lol7;&lol7;&lol7;&lol7;&lol7;&lol7; ^ Entity: line 1: parser error : Detected an entity reference loop &lol8;&lol8;&lol8;&lol8;&lol8;&lol8;&lol8;&lol8;&lol8;&lol8; ^ Entity: line 15: parser error : Detected an entity reference loop <lolz>&lol9;</lolz> ^
Output for 5.0.0 - 5.0.5
Warning: Entity: line 1: parser error : Detected an entity reference loop in /in/SMJre on line 19 Warning: &lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1; in /in/SMJre on line 19 Warning: ^ in /in/SMJre on line 19 Warning: Entity: line 1: parser error : Detected an entity reference loop in /in/SMJre on line 19 Warning: &lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2; in /in/SMJre on line 19 Warning: ^ in /in/SMJre on line 19 Warning: Entity: line 1: parser error : Detected an entity reference loop in /in/SMJre on line 19 Warning: &lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3; in /in/SMJre on line 19 Warning: ^ in /in/SMJre on line 19 Warning: Entity: line 1: parser error : Detected an entity reference loop in /in/SMJre on line 19 Warning: &lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4; in /in/SMJre on line 19 Warning: ^ in /in/SMJre on line 19 Warning: Entity: line 1: parser error : Detected an entity reference loop in /in/SMJre on line 19 Warning: &lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5; in /in/SMJre on line 19 Warning: ^ in /in/SMJre on line 19 Warning: Entity: line 1: parser error : Detected an entity reference loop in /in/SMJre on line 19 Warning: &lol6;&lol6;&lol6;&lol6;&lol6;&lol6;&lol6;&lol6;&lol6;&lol6; in /in/SMJre on line 19 Warning: ^ in /in/SMJre on line 19 Warning: Entity: line 1: parser error : Detected an entity reference loop in /in/SMJre on line 19 Warning: &lol7;&lol7;&lol7;&lol7;&lol7;&lol7;&lol7;&lol7;&lol7;&lol7; in /in/SMJre on line 19 Warning: ^ in /in/SMJre on line 19 Warning: Entity: line 1: parser error : Detected an entity reference loop in /in/SMJre on line 19 Warning: &lol8;&lol8;&lol8;&lol8;&lol8;&lol8;&lol8;&lol8;&lol8;&lol8; in /in/SMJre on line 19 Warning: ^ in /in/SMJre on line 19 Warning: Entity: line 15: parser error : Detected an entity reference loop in /in/SMJre on line 19 Warning: <lolz>&lol9;</lolz> in /in/SMJre on line 19 Warning: ^ in /in/SMJre on line 19 bool(false)
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: simplexml_load_string() in /in/SMJre on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: simplexml_load_string() in /in/SMJre on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: simplexml_load_string() in /in/SMJre on line 5