{"id":2533,"date":"2022-12-18T18:11:04","date_gmt":"2022-12-18T21:11:04","guid":{"rendered":"https:\/\/felipeelia.com.br\/?p=2533"},"modified":"2022-12-18T18:11:07","modified_gmt":"2022-12-18T21:11:07","slug":"will-php-7-2-be-the-minimum-required-version-for-wp-6-2","status":"publish","type":"post","link":"https:\/\/felipeelia.dev\/will-php-7-2-be-the-minimum-required-version-for-wp-6-2\/","title":{"rendered":"Will PHP 7.2 be the minimum required version for WP 6.2?"},"content":{"rendered":"\n
Yes, this is real! It seems that starting from WordPress 6.2 the minimum PHP version required by WP will be 7.2<\/strong>. The last change in that aspect of the software was made in May 2019, for WordPress 5.2. <\/p>\n\n\n\n The update did not happen before because the team set 5% as the maximum threshold of version usage. According to this ticket<\/a>, PHP 5.6 usage finally dropped below that. As PHP doesn’t have version 6 and versions 7.0 and 7.1 have usage numbers even lower, the minimum version would be bumped to PHP 7.2. The numbers are also available on the Stats page of WP.org<\/a>.<\/p>\n\n\n\n As of 17 Dec 2022 […]: To increase backward compatibility, WordPress adopts a strict policy regarding minimum PHP versions. PHP 5.2, for example, had its final version released in January 2011 but it was supported by WP until 2019.<\/p>\n\n\n\n PHP 5.6 reached its end of life<\/a> in December 2018 and today, 4 years later, it is still the minimum required version by WordPress. If the change really happens, we will be still behind: PHP 7.2 saw its last version released in November 2020<\/strong>, two years ago.<\/p>\n\n\n\n Out of curiosity, while I write this post, the oldest version still receiving updates<\/a> is PHP 8.0, with end-of-life planned for November 2023. The latest version, 8.2, was released this month and will receive security updates until December 2025.<\/p>\n\n\n\n\n
PHP 5.6 is at 4.99% of all WordPress sites
PHP 7.0 is at 2.68%
PHP 7.1 is at 1.82%<\/p>\nhttps:\/\/core.trac.wordpress.org\/ticket\/57345<\/a><\/cite><\/blockquote>\n\n\n\nWordPress and PHP’s timeline<\/h2>\n\n\n\n