Title: PHP Version 7 compatibility
Last modified: May 22, 2021

---

# PHP Version 7 compatibility

 *  Resolved [stevengabb27](https://wordpress.org/support/users/stevengabb27/)
 * (@stevengabb27)
 * [5 years ago](https://wordpress.org/support/topic/php-version-7-compatibility/)
 * I am having some plugin compatability issues on my wordpress site (not related
   to Appointment Hour Booking as far as I am aware) so I wanted to upgrade to the
   latest PHP as part of the process of hoping to resolve them.
 * I ran the PHP Compatability Tool and I received this incompatability. Does anyone
   know anything about it? Should I not upgrade PHP if I use this plugin?
 * I love the plugin btw, it’s been really useful for our local sports club to book
   our pitches out for our teams,
 * —
 * FILE: /vhost/wphost1/p/i/n/thewebsiteimanage.co.uk/www/wp-content/plugins/appointment-
   hour-booking/cp-admin-int-schedule.inc.php
    ———————————————————————————————————————————–
   FOUND 1 ERROR AFFECTING 1 LINE ———————————————————————————————————————————– 25
   | ERROR | Using ‘break’ outside of a loop or switch structure is invalid and 
   will throw a fatal error since PHP 7.0 ———————————————————————————————————————————–

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

 *  [phatman](https://wordpress.org/support/users/phatman/)
 * (@phatman)
 * [5 years ago](https://wordpress.org/support/topic/php-version-7-compatibility/#post-14472912)
 * PHP 7.0 is deprecated, 7.4 is the latest. I would imagine this plugin was developed
   using version 7.0 at least. The error is probably more a warning.
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [5 years ago](https://wordpress.org/support/topic/php-version-7-compatibility/#post-14476036)
 * Hi,
 * That’s a false-positive report, seems that the tool used for checking the compatibility
   isn’t correctly parsing the file and incorrectly reports that the ‘break’ is 
   out of a loop.
 * We have published anyway a little update that will remove that compatibility 
   report note.
 * The plugin has been tested and is compatible with all the current PHP versions.
 * Thank you for the feedback!

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

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

 * ![](https://ps.w.org/appointment-hour-booking/assets/icon-256x256.png?rev=1784135)
 * [Appointment Hour Booking - Booking Calendar](https://wordpress.org/plugins/appointment-hour-booking/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/appointment-hour-booking/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/appointment-hour-booking/)
 * [Active Topics](https://wordpress.org/support/plugin/appointment-hour-booking/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/appointment-hour-booking/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/appointment-hour-booking/reviews/)

## Tags

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

 * 2 replies
 * 3 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/php-version-7-compatibility/#post-14476036)
 * Status: resolved