{"id":115135,"date":"2020-06-09T07:55:22","date_gmt":"2020-06-08T23:55:22","guid":{"rendered":"http:\/\/4563.org\/?p=115135"},"modified":"2020-06-09T07:55:22","modified_gmt":"2020-06-08T23:55:22","slug":"php8%e8%a6%81%e6%9d%a5%e4%ba%86%ef%bc%8c%e6%8d%ae%e8%af%b4%e4%b8%8ajit%e5%90%8e%e6%80%a7%e8%83%bd%e6%98%afphp5-4%e7%9a%844%e5%80%8d","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=115135","title":{"rendered":"PHP8\u8981\u6765\u4e86\uff0c\u636e\u8bf4\u4e0ajit\u540e\u6027\u80fd\u662fPHP5.4\u76844\u500d"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u738b\u5065\u6797<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>PHP8\u8981\u6765\u4e86\uff0c\u636e\u8bf4\u4e0ajit\u540e\u6027\u80fd\u662fPHP5.4\u76844\u500d<\/h3>\n<p>  \t\t\u5916\u56fd\u79d1\u6280\u5a92\u4f53 Phoronix \u53d1\u5e03\u4e86\u9488\u5bf9 PHP 8 \u7684\u6027\u80fd\u57fa\u51c6\u6d4b\u8bd5\u62a5\u544a\u3002\u7531\u4e8e PHP 8 Alpha1 \u5927\u7ea6\u8981\u52306\u6708\u4e2d\u65ec\u624d\u53d1\u5e03\uff0c\u6240\u4ee5 Phoronix \u4ece PHP 8 \u6700\u65b0\u7684 Git \u4ee3\u7801\uff08\u622a\u81f35\u6708\u5e95\uff09\u6784\u5efa\u4e86\u7528\u4e8e\u6d4b\u8bd5\u7684\u7248\u672c\u3002PHP 8 \u91cd\u8981\u65b0\u7279\u6027\u9664\u4e86\u65b0\u7684 JIT \u7f16\u8bd1\u5668\uff0c\u8fd8\u5305\u62ec\u65b0\u7684\u9759\u6001\u8fd4\u56de\u7c7b\u578b\u3001union types 2.0\uff08\u8054\u5408\u7c7b\u578b\uff09\u548c attributes\uff08\u5c5e\u6027\uff09\u7b49\u3002<\/p>\n<p>  \u7528\u4e8e\u53c2\u8003\u5bf9\u6bd4\u7684\u7248\u672c\u5305\u62ec\uff1aPHP 7.4.6, 7.3.18, 7.2.31, 7.1.33, 7.0.33, 5.6.39, 5.5.38 \u548c 5.4.44\uff0c\u4ee5\u53ca\u542f\u7528\u4e86 JIT (Just In Time) \u7684 PHP 8\u3002<\/p>\n<p>  \u6240\u6709\u53d7\u6d4b\u8bd5\u7684\u7248\u672c\u90fd\u662f\u5728\u76f8\u540c\u7cfb\u7edf\u4e2d\u4f7f\u7528\u76f8\u540c\u7684\u7f16\u8bd1\u5668\u548c PHP \u914d\u7f6e\u6587\u4ef6\u4ee5\u76f8\u540c\u7684\u65b9\u5f0f\u8fdb\u884c\u6784\u5efa\uff0c\u6d4b\u8bd5\u73af\u5883\u5982\u4e0b\uff1a<\/p>\n<p>  \u6d4b\u8bd5\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n<p>  \u4e0a\u56fe\u663e\u793a\u4e86\u4f7f\u7528 PHPbench \u6d4b\u8bd5\u5404\u7248\u672c PHP \u7684\u6027\u80fd\u7ed3\u679c\u3002\u53ef\u4ee5\u770b\u5230\uff0c\u4ece PHP 7.4 stable \u5230 PHP 8 \u6709\u5c0f\u5e45\u5ea6\u6539\u8fdb\uff0c\u5927\u7ea6\u662f 7% \u7684\u63d0\u5347\uff0c\u4f46\u5982\u679c PHP 8 \u542f\u7528\u4e86 JIT\uff0c\u6027\u80fd\u6539\u8fdb\u53ef\u4ee5\u8bf4\u662f\u975e\u5e38\u660e\u663e\uff0c\u6bd4 PHP 7.4 stable \u63d0\u5347\u4e86 92%\u3002\u81f3\u4e8e\u66f4\u65e7\u7684\u7248\u672c\uff0cPHP 8 with JIT \u7684\u6027\u80fd\u662f PHP 5.4 \u7684 5 \u500d\u3002<\/p>\n<p>  \u4e0a\u56fe\u662f\u5404\u7248\u672c PHP Micro \u57fa\u51c6\u6d4b\u8bd5\u7684\u7ed3\u679c\uff0c\u901a\u8fc7\u4e00\u4e9b PHP \u81ea\u5e26\u7684\u5185\u7f6e\u6d4b\u8bd5\uff0c\u53ef\u4ee5\u770b\u5230 PHP 8.0 \u7684\u901f\u5ea6\u6bd4\u5df2\u7ecf\u5f88\u5feb\u7684 PHP 7.4 \u7565\u6709\u63d0\u9ad8\uff0c\u800c\u542f\u7528 JIT \u652f\u6301\u540e\uff0c\u5176\u901f\u5ea6\u66f4\u662f\u78be\u538b\u5168\u573a\u3002<\/p>\n<p>  \u4e0a\u56fe\u7684\u6d4b\u8bd5\u7ed3\u679c\u663e\u793a\uff0c\u5728\u4f7f\u7528 Phoronix Test Suite Self Tests \u8fdb\u884c\u6d4b\u8bd5\u7684\u8fc7\u7a0b\u4e2d\uff0c\u65e0\u8bba\u662f\u5426\u5f00\u542f JIT\uff0cPHP 8 \u7684\u6027\u80fd<\/p>\n<p>  \u4e0e PHP 7 \u7684\u6210\u7ee9\u90fd\u6ca1\u6709\u660e\u663e\u7684\u6539\u8fdb\uff0c\u4e3b\u8981\u662f\u9047\u5230\u4e86 I\/O \u74f6\u9888\uff0c\u6240\u4ee5\u603b\u4f53\u4e0a\u6ca1\u6709\u4ea7\u751f\u592a\u5927\u7684\u5dee\u5f02\u3002<\/p>\n<p>  \u540c\u6837\u7684\uff0c\u5728\u6e32\u67d3\u6d4b\u8bd5\u548c\u5408\u5e76\u6d4b\u8bd5\u65b9\u9762\uff0c\u542f\u7528 JIT \u7684 PHP 8 \u6ca1\u6709\u4ea7\u751f\u660e\u663e\u7684\u4f18\u52bf\uff0c\u4e0d\u8fc7\u4e0e\u65e7\u7248\u672c PHP 5 \u76f8\u6bd4\uff0cPHP 8 \u7684\u6027\u80fd\u6709\u4e86\u663e\u8457\u7684\u63d0\u5347\u3002<\/p>\n<p>  \u4e0a\u56fe\u662f\u7efc\u5408\u4e86\u5404\u6d4b\u8bd5\u7ed3\u679c\u7684\u8bc4\u5206\u6570\u636e\u5bf9\u6bd4\uff0c\u5c31\u76ee\u524d\u7684\u5f00\u53d1\u72b6\u6001\u6765\u770b\uff0cPHP 8.0 \u7684\u901f\u5ea6\u662f PHP 5.4-5.6 \u7684 3 \u500d\u5de6\u53f3\uff0c\u542f\u7528 JIT \u540e\uff0c\u5c31\u53d8\u6210\u4e86 4 \u500d\u5de6\u53f3\u7684\u5dee\u8ddd\u3002<\/p>\n<p>  \u4ece\u6570\u636e\u6765\u770b\uff0cPHP 8.0 \u662f\u4e00\u4e2a\u76f8\u5f53\u503c\u5f97\u671f\u5f85\u7684\u7248\u672c\uff0c\u65e0\u8bba\u662f\u6027\u80fd\u65b9\u9762\u7684\u63d0\u5347\u8fd8\u662f\u8bed\u8a00\u7279\u6027\u7684\u589e\u52a0\u3002<\/p>\n<p>  \u8be6\u7ec6\u6d4b\u8bd5\u7ed3\u679c\u67e5\u770b https:\/\/www.phoronix.com\/\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5143\u4ea8\u5229\u8d1e<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t7.4\u8fd8\u6ca1\u6709\u7528\u4e0a\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5c0f\u670b\u53cb<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6211\u7684512m\u5c0f\u9e21\u80fd\u7528\u4e0d\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>yumijie<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6b63\u5f0f\u4e0a\u7ebf\u751f\u4ea7\u73af\u5883\u8fd8\u9700\u591a\u4e45?\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5fae\u7a0b\u5e8f<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u597d\u5389\u5bb3\u7684\u6837\u5b50<\/p>\n<p>  https:\/\/cdn.jsdelivr.net\/gh\/hishis\/forum-grandmaster-for-discuz\/public\/images\/patch.gif\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5927\u59e8\u8205<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5c0f\u670b\u53cb \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-6-9 07:33<br \/>  \u6211\u7684512m\u5c0f\u9e21\u80fd\u7528\u4e0d<\/p>\n<p> \u62b1\u6b49\uff0c\u7528\u4e0d\u4e86https:\/\/cdn.jsdelivr.net\/gh\/hishis\/forum-master\/public\/images\/patch.gif\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>inkedus<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u725b\u903c\uff0c\u6211\u4e0d\u73a9\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u72c2\u4eba<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8fd8\u5728\u75285.X\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u738b\u5065\u6797 \u5927\u4f6c\u6709\u8bdd\u8bf4 : PHP8\u8981&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/115135"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=115135"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/115135\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=115135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=115135"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=115135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}