Title: PHP7 compatible?
Last modified: October 4, 2016

---

# PHP7 compatible?

 *  [Webtaurus](https://wordpress.org/support/users/and_or/)
 * (@and_or)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php7-compatible-13/)
 * Hi, title says it all 🙂
    Can anyone tell me if the plugin compatible? It is 
   not according to the PHP Compatibility Checker (WP Engine)

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

 *  [essaysnark](https://wordpress.org/support/users/essaysnark/)
 * (@essaysnark)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php7-compatible-13/#post-8842164)
 * For further detail, this is what the PHP7 Compatibility Checker is reporting:
 *     ```
       wp-content/plugins/dynamic-to-top/inc/cssmin-v3.0.1.php
       --------------------------------------------------------------------------------------------------------------------------
       FOUND 2 ERRORS AFFECTING 2 LINES
       --------------------------------------------------------------------------------------------------------------------------
        3346 | ERROR | 'clone' is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
        3353 | ERROR | 'clone' is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
       --------------------------------------------------------------------------------------------------------------------------
       ```
   
 * [@webtaurus](https://wordpress.org/support/users/webtaurus/), did you upgrade
   your site since you posted here? Any results to report running this plugin version
   4.6.1 on PHP7?
 *  [giraffe99](https://wordpress.org/support/users/giraffe99/)
 * (@giraffe99)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php7-compatible-13/#post-8921133)
 * I get the same error reported using siteground’s php7 compatibility checker with
   wordpress 4.7.3 installed.
 *  [Ronester](https://wordpress.org/support/users/neffect/)
 * (@neffect)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php7-compatible-13/#post-8961454)
 * Yep, came to report the exact same 2 errors before attempting to upgrade to PHP7.
 *  [Alejandro Gil Mialdea](https://wordpress.org/support/users/aekschoko/)
 * (@aekschoko)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php7-compatible-13/#post-9450025)
 * The problem are at file _wp-content/plugins/dynamic-to-top/inc/cssmin-v3.0.1.
   php_. It’s because clone is a keyword, not a function, therefore:
 * clone( $date ) ❌
    clone $date 💚
 * It’s easy solve this error.
 * In line 3346 you must change:
    `$source[] = clone($tokens[$iii]);` by: `$source[]
   = clone $tokens[$iii];`
 * In line 3353 you must change:
    `$t[] = clone($token);` by: `$t[] = clone $token;`
 * Let’s hope the author solves this problem soon.
    -  This reply was modified 8 years, 9 months ago by [Alejandro Gil Mialdea](https://wordpress.org/support/users/aekschoko/).

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

The topic ‘PHP7 compatible?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/dynamic-to-top_282828.svg)
 * [Dynamic "To Top" Plugin](https://wordpress.org/plugins/dynamic-to-top/)
 * [Support Threads](https://wordpress.org/support/plugin/dynamic-to-top/)
 * [Active Topics](https://wordpress.org/support/plugin/dynamic-to-top/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dynamic-to-top/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dynamic-to-top/reviews/)

## Tags

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

 * 4 replies
 * 5 participants
 * Last reply from: [Alejandro Gil Mialdea](https://wordpress.org/support/users/aekschoko/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/php7-compatible-13/#post-9450025)
 * Status: not resolved