Title: ‘clone’ [&#8230;] cannot be invoked as a function
Last modified: March 10, 2017

---

# ‘clone’ […] cannot be invoked as a function

 *  [Dan](https://wordpress.org/support/users/dangoodman/)
 * (@dangoodman)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/clone-cannot-be-invoked-as-a-function/)
 * Hi,
 * I regularly get complains from my users that [my plugin](https://wordpress.org/plugins/weight-based-shipping-for-woocommerce/)
   is not compatible with PHP 7 since they see the error in the subject.
 * However, this is just incorrect. ‘Clone’ can be used as a function and nothing
   wrong with that.
 * Is it planned to fix some day?
 * ____________________________________________________________
 * FILE: /home/xxxxxxxx/public_html/xxxxxx/wp-content/plugins/weight-based-shipping-
   for-woocommerce/WC_Weight_Based_Shipping.php
    ————————————————————————————————————————————–
   FOUND 2 ERRORS AFFECTING 2 LINES ————————————————————————————————————————————–
   67 | ERROR | ‘clone’ is a reserved keyword introduced in PHP version 5.0 and 
   cannot be invoked as a function (T_CLONE) 319 | ERROR | ‘clone’ is a reserved
   keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)————————————————————————————————————————————–
    -  This topic was modified 9 years, 2 months ago by [Dan](https://wordpress.org/support/users/dangoodman/).

The topic ‘‘clone’ […] cannot be invoked as a function’ is closed to new replies.

 * ![](https://ps.w.org/php-compatibility-checker/assets/icon-256x256.png?rev=1446087)
 * [PHP Compatibility Checker](https://wordpress.org/plugins/php-compatibility-checker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-compatibility-checker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-compatibility-checker/)
 * [Active Topics](https://wordpress.org/support/plugin/php-compatibility-checker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-compatibility-checker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-compatibility-checker/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Dan](https://wordpress.org/support/users/dangoodman/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/clone-cannot-be-invoked-as-a-function/)
 * Status: not resolved