Title: PHP 7 Compatible?
Last modified: February 4, 2017

---

# PHP 7 Compatible?

 *  [Jim Walczak](https://wordpress.org/support/users/jimwalczak/)
 * (@jimwalczak)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php-7-compatible-18/)
 * checking plugin compatibility with PHP 7 – I get the following Error.
 * Please advise:
    FILE: /nas/content/live/MYSITE/wp-content/plugins/accelerated-
   mobile-pages/includes/options/redux-core/inc/validation/preg_replace/validation_preg_replace.
   php ————————————————————————————– FOUND 1 ERROR AFFECTING 1 LINE ————————————————————————————–
   30 | ERROR | preg_replace() – /e modifier is deprecated since PHP 5.5 and removed
   since PHP 7.0

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

 *  Plugin Contributor [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * (@ampforwp)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php-7-compatible-18/#post-8737974)
 * Hey [@jimwalczak](https://wordpress.org/support/users/jimwalczak/),
 * Thank you so much for using our plugin.
 * Can you tell us what made you to test this? and what method you have used to 
   do it?
 * If you can give us the feedback, it would really help us to understand this and
   solve if necessary.
 * Regards
    MARQAS
 *  Thread Starter [Jim Walczak](https://wordpress.org/support/users/jimwalczak/)
 * (@jimwalczak)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php-7-compatible-18/#post-8738449)
 * After further research I think this is a false positive since I don’t see -e/
   modifier in your code.
 * our server provider (WP Engine) created a Word Press plugin (free for everyone)
   that checks plugins and themes for PHP 7 compaitibility. We are getting ready
   to upgrade our server and wanted to make sure that everything we use is PHP 7
   compatible before switching.
 * That plugin can be found here [https://wordpress.org/plugins/php-compatibility-checker/](https://wordpress.org/plugins/php-compatibility-checker/)
 *  [drlorenzetti77](https://wordpress.org/support/users/drlorenzetti77/)
 * (@drlorenzetti77)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php-7-compatible-18/#post-8738829)
 * yes compatibility php 7
 * I’m testing it and I have no problem
 * 😉
 *  Thread Starter [Jim Walczak](https://wordpress.org/support/users/jimwalczak/)
 * (@jimwalczak)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php-7-compatible-18/#post-8738959)
 * awesome thanks for the feedback [@drlorenzetti77](https://wordpress.org/support/users/drlorenzetti77/)
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php-7-compatible-18/#post-8739854)
 * Hey Jim [@jimwalczak](https://wordpress.org/support/users/jimwalczak/)
 * I have tested the plugin on WP-engine with php7 and it worked perfectly fine.

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

The topic ‘PHP 7 Compatible?’ is closed to new replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

## Tags

 * [PHP7](https://wordpress.org/support/topic-tag/php7/)

 * 5 replies
 * 4 participants
 * Last reply from: [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/php-7-compatible-18/#post-8739854)
 * Status: not resolved