Title: Issue with Php version
Last modified: March 2, 2017

---

# Issue with Php version

 *  Resolved [moi027](https://wordpress.org/support/users/moi027/)
 * (@moi027)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/issue-with-php-version/)
 * hello,
    I have php 5.6 installed and activated but the plugin ask me to install
   php 5.3 or higher, for it to work. What’s wrong?

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

 *  Thread Starter [moi027](https://wordpress.org/support/users/moi027/)
 * (@moi027)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/issue-with-php-version/#post-8866743)
 * My wordpress version is 4.7.2
 *  Plugin Author [Delite Studio](https://wordpress.org/support/users/delitestudio/)
 * (@delitestudio)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/issue-with-php-version/#post-8888250)
 * Hello,
 * we use this PHP code:
 *     ```
       const MIN_PHP_REQUIRED = '5.3.0';
   
       if (version_compare(PHP_VERSION, self::MIN_PHP_REQUIRED, '<')) {
         // Show user to upgrade their PHP version
       }
       ```
   
 * you can find more info here on the [official documentation of PHP](http://php.net/manual/en/function.version-compare.php).
 * As it’s a standard PHP function we can exclude it’s a bug, maybe there’s something
   wrong on your server configuration.
 * Try [this plugin](https://wordpress.org/plugins/display-php-version/) to display
   the PHP version.
 *  Thread Starter [moi027](https://wordpress.org/support/users/moi027/)
 * (@moi027)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/issue-with-php-version/#post-8893057)
 * Hello,
 * My version was 5.2.17, I changed const MIN_PHP_REQUIRED = ‘5.3.0’; to const MIN_PHP_REQUIRED
   = ‘5.2.17’;.
 * And now, all is working fine.
 * Thanks
 *  Plugin Author [Delite Studio](https://wordpress.org/support/users/delitestudio/)
 * (@delitestudio)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/issue-with-php-version/#post-8893139)
 * As written in the documentation, Push Notifications for WordPress requires at
   least PHP 5.3. If you use it with older versions, it does not work properly. 
   Changing the check unfortunately is not a solution. We therefore recommend you
   to upgrade the PHP version you are using. Hope it helps!

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

The topic ‘Issue with Php version’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/push-notifications-for-wp_373b48.
   svg)
 * [Push Notifications for WordPress (Lite)](https://wordpress.org/plugins/push-notifications-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/push-notifications-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/push-notifications-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/push-notifications-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/push-notifications-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/push-notifications-for-wp/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [Delite Studio](https://wordpress.org/support/users/delitestudio/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/issue-with-php-version/#post-8893139)
 * Status: resolved