It's probably got something to do with different PHP versions:
The DOMDocument::loadHTML method only accepted a second ($options) argument since PHP 5.4, it's listed on the changelog:
5.4.0 DOMDocument::loadHTML Added options parameter.
DOMDocument::loadHTMLFile Added options parameter.
The changes are also listed on the DOMDocument::loadHTML doc pages
Update:
After some digging, I found a lot of contradictory information concerning the LIBXML_HTML_NODEFDTD constant. according to the docs, it's available in >= libxml 2.7.7, whereas other sources contradict this. I have found some projects that define this constant manually, and an answer here that states that this constant is only available in libxml 2.7.8.
This could explain the difference between your 2 environments. An open-source project on github tackles this issue by simply defining the constant if needed:
defined('LIBXML_HTML_NODEFDTD') || define ('LIBXML_HTML_NODEFDTD', 4);