The dom functions have nothing to do with fetching html.
however, there are download functions that you can use to directly extract http resources.
they will show the same behavior as file_get_contents without context parameters.
regarding another part of your question. preg functions faster. however, they are not intended for this use, and you will probably regret using them for this purpose soon.
if you parse html with regular expressions, you are either completely insane nuts, or you just don't get the concept of html.
source share