Title: PHP 7 compatibility
Last modified: September 17, 2016

---

# PHP 7 compatibility

 *  Resolved [forthinc](https://wordpress.org/support/users/forthinc/)
 * (@forthinc)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-7-compatibility-77/)
 * We are about to update our site to PHP 7 and ran a compatibility checker against
   all our plugins. MaxMegaMenu is generates the errors listed below. Will there
   be a PHP 7 compatible version? We have the MaxMegaMenu Pro version. (The Pro 
   part passes; the main plugin does not.)
 *  3300 | ERROR | ‘string’ is a reserved keyword introduced in PHP version 7.0 
   and cannot be invoked as a function (T_STRING)
    3498 | ERROR | Function name,
   class name, namespace name or constant name can not be reserved keyword ‘string’(
   since version 7.0) 3611 | ERROR | ‘string’ is a reserved keyword introduced in
   PHP version 7.0 and cannot be invoked as a function (T_STRING) 3855 | ERROR |‘
   string’ is a reserved keyword introduced in PHP version 7.0 and cannot be invoked
   as a function (T_STRING)

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

 *  Plugin Author [megamenu](https://wordpress.org/support/users/megamenu/)
 * (@megamenu)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-7-compatibility-77/#post-8198080)
 * Hi, this was answered through Pro support over the weekend, but in case anyone
   else is interested, here’s my response:
 * Did the error you’ve pasted come from the WP Engine PHP Compatibility Checker
   plugin? If so, the error you see is a **false positive** as reported here:
 * [https://github.com/wimg/PHPCompatibility/issues/115](https://github.com/wimg/PHPCompatibility/issues/115)
 * (the Compatibility Checker plugin uses this library).
 * The ‘error’ is coming from the scssphp library that Max Mega Menu uses to compile
   the menu CSS. The latest update for scssphp is not compatible with < PHP 5.4,
   so it’s not so easy to update it. If I did update it, it would keep the Compatibility
   Checker plugin happy, but we’d lose compatibility with PHP 5.4 unless I introduced
   some complexity to support both versions (something I’d really prefer not to 
   do – I value simplicity :))
 * For further reassurance, I have been using PHP7 on maxmegamenu.com for the past
   7 or 8 months.
 * Regards,
    Tom
    -  This reply was modified 9 years, 7 months ago by [megamenu](https://wordpress.org/support/users/megamenu/).
 *  [heytricia](https://wordpress.org/support/users/tendigit/)
 * (@tendigit)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-7-compatibility-77/#post-8203274)
 * I had the same results using the wpengine php compatibility plugin. Sounds like
   we’re good, but I’m replying so that I can receive follow-up emails.
 * Thanks for all you do!

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

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

 * ![](https://ps.w.org/megamenu/assets/icon-128x128.png?rev=1489843)
 * [Max Mega Menu](https://wordpress.org/plugins/megamenu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/megamenu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/megamenu/)
 * [Active Topics](https://wordpress.org/support/plugin/megamenu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/megamenu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/megamenu/reviews/)

## Tags

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

 * 2 replies
 * 3 participants
 * Last reply from: [heytricia](https://wordpress.org/support/users/tendigit/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/php-7-compatibility-77/#post-8203274)
 * Status: resolved