According to this article, the fwrite()
is a smidgen faster. (Link to Wayback Machine, because site no longer exists.)
My guess is that file_put_contents()
is just a wrapper around those three methods anyways, so you would lose the overhead.
EDIT : This site has the same information.