Since PHP 7.1 it is possible to interprete negative offset.
The default Value of offset have to be changed from -1 to 0.
function file_get_html($url, $use_include_path = false, $context=null, $offset = 0, $maxLen=-1, $lowercase = true, $forceTagsClosed=true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN=true, $defaultBRText=DEFAULT_BR_TEXT, $defaultSpanText=DEFAULT_SPAN_TEXT)
Thanks for reporting this issue! I've integrated your proposed change to master [3ab5ee]
Related
Commit: [3ab5ee]