最近想的比较多的就是php8.1 目前最新版本都到了 8.1.1 跟php7.3 测试了如下代码
It can't be opened at all and you search for this sentence, whether it is Google or Baidu, there is no information, so I sent my Baidu a bit. PHP 8.0 discuz does not support the search and found the official gitee community's answer. Can PHP 8.0 run?
Old Zhou tribe X3.4 and below versions 7 months ago cannot.
The X3.5 beta version supports PHP 8.0 for testing, and the official version (which also supports PHP 8.0 for testing) is expected to be released this year.
Tick-wenshitao 7 months ago, thank you Lao Zhou tribe for replying to tick 7 months ago, please change the status to completed, thank you.
The official gave the answer. Discuz x3.5 I feel is a bate version because the official update is x3.4 and 3.5 is more like a beta version. Currently, it is a test version that supports php8.0. My personal feeling is that even if it can support many of the current ones Plugins are not supported. Although php8.1 has powerful performance, it is no use if the program does not support it. I searched again. WordPress supports php8.1 and found such an article. How to test whether WordPress themes and plugins support PHP8 and about the compatibility of plugin themes with PHP8 Sex PHP8 was released on November 26, 2020, WordPress Core contributor Jonathan Desrosiers published an article on the Making WordPress Core blog about the impact of PHP8 on WordPress, as confirmed from the article The current version of WordPress cannot be guaranteed to run perfectly in PHP8, especially the compatibility of many themes and plugins is more unpredictable. WordPress5.6, which will be released on December 8, 2020, is only a transitional version of PHP8, so don't try it now Upgrade to use PHP8 on your own WordPress site.
Introducing PHP8 PHP8 is the next major update to our favorite scripting language. While previous PHP versions did not have much of a negative impact on the WordPress ecosystem, this update has some breaking changes that may affect backward compatibility. It should also be noted that many features deprecated in PHP7.x will now be removed in PHP8.
The State of the WordPress Core In his post, De Rossiers highlights the work being done to keep the core software up to date. "WordPressCore aims to be compatible with PHP 8.0 in version 5.6 (currently scheduled for December 8, 2020)," he wrote.
However, this does not mean that it is safe to upgrade to PHP8 when WordPress 5.6 is released. WordPress rarely just runs itself, often relying on at least one collection of themes and plugins as a blog or website. As such, he points out, "It is impossible to know the status of PHP8 support in the wider ecosystem (plugins, themes, etc.). Therefore, WordPress 5.6 should be considered "beta compatible" with PHP8.
This means, essentially, that WordPress cannot be considered fully compatible until most major themes and plugins are PHP8 compatible.
So wordpress does not support php8.0 perfectly. 囧..
<?php
$start=microtime(true);
for ($i=1;$i<=100000000;$i++){}
$end=microtime(true);
echo ($end-$start);
?>
php8.1 在同意的配置机器上能跑到0.2秒 即使是差点的机器也能跑0.6秒
要知道 php7.3只能跑0.66 而差点的机器要跑到1.7秒
这性能我感觉是提升了150% 当然测试不能只测这一项 还有其他的测试 我不是砖家 这里仅仅用这一项来比对性能
php是没问题 都能装上 但是 真正能用于生产吗? 还需要程序支持 比如我给discuz换上php8.1 立马提示:
This version of Discuz! is not compatible with >= PHP 8.0, Please install or update to higher version.
根本就打不开 而你搜索这句话 不论是谷歌还是百度 竟然都没有一条信息 于是我来发出
我百度了一下 PHP 8.0 discuz不支持 搜索出 官方gitee社区的答复
请问php 8.0能运行吗?
老周部落7个月前
X3.4 及以下版本不能。
X3.5 测试版测试性支持 PHP 8.0 ,正式版(同样是测试性支持 PHP 8.0)预计今年发布。
滴嗒-wenshitao 滴嗒7个月前
好的谢谢您
老周部落回复滴嗒7个月前
请更改状态为已完成,谢谢。
官方给出了答案 discuz x3.5 我感觉就是一个bate版本 因为官方目前更新的是x3.4
而3.5更像一个测试版 目前是测试性支持php8.0
我个人的感觉是 即使能支持 现在的很多插件也不支持
虽说php8.1性能强悍 但是于是程序不支持 也是白搭
我又搜搜了 wordpress 支持php8.1
搜出这样一篇文章 如何测试WordPress主题和插件是否支持PHP8及关于插件主题与PHP8的兼容性
PHP8于2020年11月26日发布,WordPress核心撰稿人乔纳森·德罗西耶斯(JonathanDesrosiers)在《使WordPress核心》博客上发表了一篇关于PHP8对WordPress影响的文章,从文中可以确认Wordpress目前的版本,不能保证在PHP8中完美运行,特别是众多的主题和插件兼容性更不可预知,即将于2020年12月8日发布的Wordpress5.6也只是PHP8的过渡版本,所以目前不要尝试在自己的WordPress网站上升级使用PHP8。
PHP8推出
PHP8是我们最喜欢的脚本语言的下一个主要更新。虽然以前的PHP版本对WordPress生态系统没有太大的负面影响,但此更新有一些重大更改可能会影响向后兼容性。还应该注意的是,PHP7.x中弃用的许多功能现在将在PHP8中删除。
WordPress核心的状态
在他的帖子中,德罗西耶斯强调了为使核心软件保持最新而进行的工作。"WordPressCore的目标是在5.6版本中与PHP8.0兼容(目前定于2020年12月8日),"他写道。
但是,这并不意味着在WordPress5.6发布时升级到PHP8是安全的。WordPress很少只运行自己,通常依赖于至少一个主题和插件集合作为博客或网站。因此,他指出,"PHP8在更广泛的生态系统(插件、主题等)中支持的状态是不可能知道的。因此,WordPress5.6应被视为与PHP8的"测试版兼容"。
这意味着,本质上,在大多数主要的主题和插件是PHP8兼容之前,WordPress不能被认为是完全兼容的。
所以 wordpress也是不完美支持php8.0的 囧