Title: PHP 8.1 Compatability
Last modified: November 12, 2021

---

# PHP 8.1 Compatability

 *  Resolved [enderandrew](https://wordpress.org/support/users/enderandrew/)
 * (@enderandrew)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-8-1-compatability-2/)
 * I’m still on PHP 7.4 because I heard many WordPress plugins and themes don’t 
   support PHP 8, though I also hear that PHP 8 is both more secure and performs
   better.
 * I was going to test out PHP 8 on my site and I see there are RC builds for 8.1
   which is supposed to come out this month and went ahead and tested that. Strictly
   speaking, it appears Smush works with PHP 8.1, however if you look at the logs,
   there are warnings about using deprecated features.
 * I thought I’d just pass them along.
 * Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /var/www/omahachapterone/
   wp-content/plugins/wp-smushit/core/modules/helpers/class-parser.php on line 229

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-8-1-compatability-2/#post-15062992)
 * Hello [@enderandrew](https://wordpress.org/support/users/enderandrew/) !
 * I hope you’re doing great today!
 * Thank you for the feedback! I’ll pass the deprecation notice to our Smush team
   for further review and adjustments.
 * I’ve been running my test sites on 8.0 for a while now and I can confirm that
   in general there aren’t any issues (our team also periodically performs adjustments
   to support newer versions of PHP and for each major version of WP).
 * Fortunately, in this case the Deprecated level messages are only informative 
   that in some time in the future an option won’t be supported anymore – this usually
   takes a year of so, so no need to worry that something will stop working next
   month. By the time the phasing out happens we’ll be done with the adjustments
   and updates.
 * Thank you once again for sharing the message 🙂
 * Kind regards,
    Pawel
 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-8-1-compatability-2/#post-15102915)
 * Hi [@enderandrew](https://wordpress.org/support/users/enderandrew/),
 * I can confirm this has already been reported to our developer’s attention and
   it’s slated to be fixed in version 3.9.5. Since this has already been addressed,
   I’ll go ahead and mark this thread as resolved for now.
 * Please feel free to re-open the thread for any further assistance.
 * Kind Regards,
    Nithin

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP 8.1 Compatability’ is closed to new replies.

 * ![](https://ps.w.org/wp-smushit/assets/icon-256x256.gif?rev=3447113)
 * [Smush – Image Optimization, Compression, Lazy Load, WebP & CDN](https://wordpress.org/plugins/wp-smushit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-smushit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-smushit/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-smushit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-smushit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-smushit/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/php-8-1-compatability-2/#post-15102915)
 * Status: resolved