$xml = <<<XML
<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE markables SYSTEM "markables.dtd">
<markables>
<markable id="markable_1" atrib="yes" span="word_1..word_4"> </markable>
<markable id="markable_2" atrib="no" span="word_6..word_7"> </markable>
<markable id="markable_3" atrib="yes" span="word_10..word_24"> </markable>
</markables>
XML;
Warning: Undefined variable $xml in /in/7rSXL on line 14
Deprecated: DOMDocument::loadXML(): Passing null to parameter #1 ($source) of type string is deprecated in /in/7rSXL on line 14
Fatal error: Uncaught ValueError: DOMDocument::loadXML(): Argument #1 ($source) must not be empty in /in/7rSXL:14
Stack trace:
#0 /in/7rSXL(14): DOMDocument->loadXML('')
#1 {main}
thrown in /in/7rSXL on line 14
Process exited with code 255.
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30
$xml = <<<XML
<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE markables SYSTEM "markables.dtd">
<markables>
<markable id="markable_1" atrib="yes" span="word_1..word_4"> </markable>
<markable id="markable_2" atrib="no" span="word_6..word_7"> </markable>
<markable id="markable_3" atrib="yes" span="word_10..word_24"> </markable>
</markables>
XML;
Warning: Undefined variable $xml in /in/7rSXL on line 14
Fatal error: Uncaught ValueError: DOMDocument::loadXML(): Argument #1 ($source) must not be empty in /in/7rSXL:14
Stack trace:
#0 /in/7rSXL(14): DOMDocument->loadXML('')
#1 {main}
thrown in /in/7rSXL on line 14
Process exited with code 255.
Output for 8.0.13
Parse error: syntax error, unexpected identifier "version" in /in/7rSXL on line 2
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 7.3.32 - 7.3.33, 7.4.33
Parse error: syntax error, unexpected 'version' (T_STRING) in /in/7rSXL on line 2
Process exited with code 255.