Are there any potential drawbacks or limitations to using content compression in PHP?

One potential drawback of using content compression in PHP is that it may consume additional server resources, as the server needs to compress and decompress the content before sending it to the client. This could potentially slow down the server's performance if it is under heavy load. Additionally, some older browsers may not support compressed content, leading to compatibility issues.

// Enable content compression in PHP
if (extension_loaded('zlib')) {
    ob_start('ob_gzhandler');
}