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

---

# PHP 8.1 Compatability

 *  [enderandrew](https://wordpress.org/support/users/enderandrew/)
 * (@enderandrew)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-8-1-compatability/)
 * 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 Yoast SEO 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: Automatic conversion of false to array is deprecated in /var/www/omahachapterone/wp-content/plugins/wordpress-seo/inc/class-wpseo-image-utils.php on line 190
   
       Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /var/www/omahachapterone/wp-content/plugins/wordpress-seo/src/conditionals/third-party/elementor-edit-conditional.php on line 22
   
       Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/omahachapterone/wp-content/plugins/wordpress-seo/src/generators/schema-generator.php on line 176
       Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/omahachapterone/wp-content/plugins/wordpress-seo/src/models/indexable.php on line 167
       Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /var/www/omahachapterone/wp-content/plugins/wordpress-seo/src/builders/indexable-post-builder.php on line 125
   
       Deprecated: Return type of Yoast\WP\Lib\Model::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/omahachapterone/wp-content/plugins/wordpress-seo/lib/model.php on line 560
       Deprecated: Return type of Yoast\WP\Lib\ORM::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/omahachapterone/wp-content/plugins/wordpress-seo/lib/orm.php on line 2457
       Deprecated: Return type of Yoast\WP\Lib\ORM::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/omahachapterone/wp-content/plugins/wordpress-seo/lib/orm.php on line 2468
       Deprecated: Return type of Yoast\WP\Lib\ORM::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/omahachapterone/wp-content/plugins/wordpress-seo/lib/orm.php on line 2478
       Deprecated: Return type of Yoast\WP\Lib\ORM::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/omahachapterone/wp-content/plugins/wordpress-seo/lib/orm.php on line 2490
       ```
   
    -  This topic was modified 4 years, 7 months ago by [enderandrew](https://wordpress.org/support/users/enderandrew/).

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

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [enderandrew](https://wordpress.org/support/users/enderandrew/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/php-8-1-compatability/)
 * Status: not a support question