3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dom = new DOMDocument(); $dom->loadHtmlFile('data://text/plain,base64,'.base64_encode('<html/>')); echo $dom->saveXml();
Output for 5.2.0 - 7.1.0
<?xml version="1.0" standalone="yes"?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html><body><p>base64,PGh0bWwvPg==</p></body></html>
Output for 5.1.0 - 5.1.6
Notice: DOMDocument::loadHTMLFile(): Unable to find the wrapper "data" - did you forget to enable it when you configured PHP? in /in/TGSm8 on line 4 Warning: DOMDocument::loadHTMLFile(): I/O warning : failed to load external entity "data://text/plain,base64,PGh0bWwvPg==" in /in/TGSm8 on line 4 <?xml version="1.0"?>
Output for 5.0.0 - 5.0.5
Notice: DOMDocument::loadHTMLFile(): Unable to find the wrapper "data" - did you forget to enable it when you configured PHP? in /in/TGSm8 on line 4 Notice: DOMDocument::loadHTMLFile(): Unable to find the wrapper "data" - did you forget to enable it when you configured PHP? in /in/TGSm8 on line 4 Warning: I/O warning : failed to load external entity "data://text/plain,base64,PGh0bWwvPg==" in /in/TGSm8 on line 4 <?xml version="1.0"?>
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: domdocument in /in/TGSm8 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/TGSm8 on line 3