PHP Compatibility Index

Is AMP for WP compatible with PHP 8?

Version 1.1.19 · 70,000+ active installs

Works on PHP 8.0–8.5, with deprecation notices from 8.0

No removed PHP features found in AMP for WP 1.1.19. It uses 13 deprecated feature(s) that only log notices today.

PHP 8.0
⚠ 1
PHP 8.1
⚠ 2
PHP 8.2
⚠ 2
PHP 8.3
⚠ 2
PHP 8.4
⚠ 4
PHP 8.5
⚠ 13

✓ no problems · ⚠ deprecation notices only (still works) · ✗ uses something removed in that PHP version

Check your whole site, not just one plugin. The free PHP Upgrade Check plugin scans every plugin and theme you have installed (including premium and custom ones) and explains each problem. It runs on any host.

Deprecated (works today, logs notices)

File:lineWhat
components/logo/logo.php:47The integer cast is deprecated since PHP 8.5; Use (int) instead
components/logo/logo.php:50The integer cast is deprecated since PHP 8.5; Use (int) instead
components/logo/logo.php:51The integer cast is deprecated since PHP 8.5; Use (int) instead
includes/options/redux-core/framework.php:2862The constant "FILTER_SANITIZE_STRING" is deprecated since PHP 8.1
includes/options/redux-core/inc/fields/raw/parsedown.php:656Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $Block.
includes/options/redux-core/inc/fields/raw/parsedown.php:795Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $Block.
includes/options/redux-core/inc/fields/slides/field_slides.php:46Declaring an optional parameter before a required parameter is deprecated since PHP 8.0. Parameter $value is optional, while parameter $parent is required. The $value parameter is implicitly treated as a required parameter.
pagebuilder/inc/viewShowFrontData.php:872The integer cast is deprecated since PHP 8.5; Use (int) instead
pagebuilder/inc/viewShowFrontData.php:873The integer cast is deprecated since PHP 8.5; Use (int) instead
pagebuilder/modules/contents-module.php:602The integer cast is deprecated since PHP 8.5; Use (int) instead
templates/features.php:5438The integer cast is deprecated since PHP 8.5; Use (int) instead
templates/features.php:5465The integer cast is deprecated since PHP 8.5; Use (int) instead
templates/features.php:5999The integer cast is deprecated since PHP 8.5; Use (int) instead

Removed long ago or protected by a check (code that most likely never runs on PHP 8)

File:lineWhat
templates/features.php:1123The "case_insensitive" parameter for function define() is deprecated since PHP 7.3 and removed since PHP 8.0

Plugin page on WordPress.org: accelerated-mobile-pages