Joomla and PHP7

Joomla 3 version start supported PHP 7, that  reduce  loading time of the page by 10 – 30% on average. If the web server could handle 100 requests per second with PHP 5.6, then the same web server can handle 200 – 300 requests per second with PHP 7.

Backwards compatibility

Joomla had JString as a class since Joomla 1.5. In Joomla 3.3 a Framework package was introduced which had a duplicate class called “string“. JString was made to extend the framework string package, as they were just duplicates. “String” is a protected class name in PHP 7, so to avoid a conflict with the PHP 7 class, String was renamed to StringHelper.

Important information about the PHP versions:

  • PHP 5.3 – deprecated – should not be used anymore.
  • PHP 5.4 – deprecated – should not be used anymore.
  • PHP 5.5 – deprecated – should not be used anymore.
  • PHP 5.6 – Active Support Until 19 Jan 2017, Security Support Until 31 Dec 2018.
  • PHP 7.0 – Active Support Until  3 Dec 2017, Security Support Until 3 Dec 2018.
  • PHP 7.1 – Active Support Until  1 Dec 2018,  Security Support Until 1 Dec 2019.

Before you switch your Joomla website to PHP 7  take the time to research whether your extension providers support it also.

You can download and test Joomla! quick-start packages compatible with php7 here:

2 thoughts on “Joomla and PHP7

  1. Hi I am using AS2058 template and have just updated to PHP 7.2.
    I am now getting this error “Using $this when not in object context”

    I have updated my template license and have downloaded the latest version but am reticent to upload it in case I crash it totally.

    Can you assist with some instructions please


Leave a Reply

Your email address will not be published.