3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $doc = new DOMDocument(); $doc->loadHTML('<p> asd asd '); echo $doc->validate();
based on hP1C2
Output for 5.2.6 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19, 7.0.4, 7.0.20, 7.1.5 - 7.2.0
Warning: DOMDocument::validate(): php_network_getaddresses: getaddrinfo failed: System error in /in/DBSda on line 6 Warning: DOMDocument::validate(http://www.w3.org/TR/REC-html40/loose.dtd): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/DBSda on line 6 Warning: DOMDocument::validate(): I/O warning : failed to load external entity "http://www.w3.org/TR/REC-html40/loose.dtd" in /in/DBSda on line 6 Warning: DOMDocument::validate(): Could not load the external subset "http://www.w3.org/TR/REC-html40/loose.dtd" in /in/DBSda on line 6
Output for 5.5.24 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 7.0.3, 7.0.5 - 7.0.6, 7.1.0
Warning: DOMDocument::validate(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/DBSda on line 6 Warning: DOMDocument::validate(http://www.w3.org/TR/REC-html40/loose.dtd): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/DBSda on line 6 Warning: DOMDocument::validate(): I/O warning : failed to load external entity "http://www.w3.org/TR/REC-html40/loose.dtd" in /in/DBSda on line 6 Warning: DOMDocument::validate(): Could not load the external subset "http://www.w3.org/TR/REC-html40/loose.dtd" in /in/DBSda on line 6
Output for 5.1.0 - 5.2.5
Warning: DOMDocument::validate(): php_network_getaddresses: getaddrinfo failed: System error in /in/DBSda on line 6 Warning: DOMDocument::validate(http://www.w3.org/TR/REC-html40/loose.dtd): failed to open stream: Connection refused in /in/DBSda on line 6 Warning: DOMDocument::validate(): I/O warning : failed to load external entity "http://www.w3.org/TR/REC-html40/loose.dtd" in /in/DBSda on line 6 Warning: DOMDocument::validate(): Could not load the external subset "http://www.w3.org/TR/REC-html40/loose.dtd" in /in/DBSda on line 6
Output for 5.0.3 - 5.0.5
Warning: DOMDocument::validate(): php_network_getaddresses: getaddrinfo failed: System error in /in/DBSda on line 6 Warning: DOMDocument::validate(http://www.w3.org/TR/REC-html40/loose.dtd): failed to open stream: Connection refused in /in/DBSda on line 6 Warning: connection refusedI/O warning : failed to load external entity "http://www.w3.org/TR/REC-html40/loose.dtd" in /in/DBSda on line 6 Warning: Could not load the external subset "http://www.w3.org/TR/REC-html40/loose.dtd" in /in/DBSda on line 6
Output for 5.0.1 - 5.0.2
Warning: DOMDocument::validate(): php_network_getaddresses: gethostbyname failed in /in/DBSda on line 6 Warning: DOMDocument::validate(http://www.w3.org/TR/REC-html40/loose.dtd): failed to open stream: Resource temporarily unavailable in /in/DBSda on line 6 Warning: connection refusedI/O warning : failed to load external entity "http://www.w3.org/TR/REC-html40/loose.dtd" in /in/DBSda on line 6 Warning: Could not load the external subset "http://www.w3.org/TR/REC-html40/loose.dtd" in /in/DBSda on line 6
Output for 5.0.0
Warning: DOMDocument::validate(): php_network_getaddresses: gethostbyname failed in /in/DBSda on line 6 Warning: DOMDocument::validate(http://www.w3.org/TR/REC-html40/loose.dtd): failed to open stream: Bad file descriptor in /in/DBSda on line 6 Warning: connection refusedI/O warning : failed to load external entity "http://www.w3.org/TR/REC-html40/loose.dtd" in /in/DBSda on line 6 Warning: Could not load the external subset "http://www.w3.org/TR/REC-html40/loose.dtd" in /in/DBSda on line 6
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: domdocument in /in/DBSda on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: domdocument in /in/DBSda on line 3