Title: Compatible with PHP 7.0?
Last modified: May 8, 2017

---

# Compatible with PHP 7.0?

 *  Resolved [jamminjames](https://wordpress.org/support/users/jamminjames/)
 * (@jamminjames)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/compatible-with-php-7-0-2/)
 * I used the PHP Compatibility Checker plugin to check my site, and for PHP 7.0,
   there are 7 warnings and one error for this plugin.
 * Such as these for various files within the plugin:
    Method name “PrisnaGWTFastJSON::
   __getStaticReplacement” is discouraged; PHP has reserved all method names with
   a double underscore prefix for future use. File has mixed line endings; this 
   may cause incorrect results.
 * The error is for the common.class.php file:
    preg_replace() – /e modifier is 
   deprecated since PHP 5.5 and removed since PHP 7.0
 * Is it compatible with PHP 7.0? Are these issues being addressed?
 * Thank you.

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

 *  Plugin Author [Prisna](https://wordpress.org/support/users/prisna/)
 * (@prisna)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/compatible-with-php-7-0-2/#post-9107207)
 * Greetings,
 * yes, the plugin works on PHP 7.
 * These are not really issues, just warning messages issued by a 3rd party plugin.
   It’s true that PHP has reserved all method names with a double underscore prefix;
   but it’s nearly impossible they will ever create a method named _\_\_getStaticReplacement_,
   currently these PHP _magic_ methods are:
 * `__construct(), __destruct(), __call(), __callStatic(), __get(), __set(), __isset(),
   __unset(), __sleep(), __wakeup(), __toString(), __invoke(), __set_state(), __clone()
   and __debugInfo()`
 * So there’s no need to worry. In any case, we’ll change the method name and regular
   expression in the next plugin update.
 * Regards
    -  This reply was modified 9 years, 1 month ago by [Prisna](https://wordpress.org/support/users/prisna/).
 *  Thread Starter [jamminjames](https://wordpress.org/support/users/jamminjames/)
 * (@jamminjames)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/compatible-with-php-7-0-2/#post-9107622)
 * Great, thanks!
 * Although, you didn’t address the error, which the report says is more serious:
 * common.class.php file:
    preg_replace() – /e modifier is deprecated since PHP 
   5.5 and removed since PHP 7.0
 * …but if, as you say, it’s working with 7.0 now, I assume that it’s not fatal,
   and that it will be addressed as well, right?
 * Thanks again.
 *  Plugin Author [Prisna](https://wordpress.org/support/users/prisna/)
 * (@prisna)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/compatible-with-php-7-0-2/#post-9116089)
 * Greetings,
 * we did address it, but perhaps it wasn’t obvious enough. The _regular expression_
   comment referred to the _preg\_replace_ function.
 * Regards
 *  [Matthew Eppelsheimer](https://wordpress.org/support/users/mattheweppelsheimer/)
 * (@mattheweppelsheimer)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/compatible-with-php-7-0-2/#post-9271260)
 * [@prisna](https://wordpress.org/support/users/prisna/), I’m trying to determine
   whether that regular expression error should hold us back from upgrading one 
   of our sites to PHP 7.0. What is your timeframe for releasing the next update?
   Thank you!

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

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

 * ![](https://ps.w.org/google-website-translator/assets/icon-128x128.png?rev=1732883)
 * [Prisna GWT - Google Website Translator](https://wordpress.org/plugins/google-website-translator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-website-translator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-website-translator/)
 * [Active Topics](https://wordpress.org/support/plugin/google-website-translator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-website-translator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-website-translator/reviews/)

## Tags

 * [compatible](https://wordpress.org/support/topic-tag/compatible/)
 * [php-7](https://wordpress.org/support/topic-tag/php-7/)

 * 4 replies
 * 3 participants
 * Last reply from: [Matthew Eppelsheimer](https://wordpress.org/support/users/mattheweppelsheimer/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/compatible-with-php-7-0-2/#post-9271260)
 * Status: resolved