The function will return false and raise a warning if the input $subject is too long :
[PhpWarning] preg_match(): Subject is too long
I believe the limit is 1 or 2 GB because I was using a 2.2GB string.
While a parameter might exist to alter this limit, in my case it was possible and wiser to use <500MB strings instead.