{"id":37016,"date":"2022-09-21T00:08:11","date_gmt":"2022-09-20T15:08:11","guid":{"rendered":"https:\/\/kinsta.com\/jp\/?p=37016&#038;preview=true&#038;preview_id=37016"},"modified":"2023-08-26T00:09:31","modified_gmt":"2023-08-25T15:09:31","slug":"php-8-2","status":"publish","type":"post","link":"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/","title":{"rendered":"PHP 8.2\u306e\u65b0\u6a5f\u80fd\uff08\uff0b\u975e\u63a8\u5968\u6a5f\u80fd\u3068\u5909\u66f4\u70b9\uff09"},"content":{"rendered":"<p>PHP 8.2\u306f\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/php-8\/\">PHP 8.0<\/a>\u3068<a href=\"https:\/\/kinsta.com\/blog\/php-8-1\/\">PHP 8.1<\/a>\u3067\u78ba\u7acb\u3055\u308c\u305f\u6700\u65b0\u306e\u57fa\u76e4\u306e\u4e0a\u306b\u69cb\u7bc9\u3055\u308c\u305f\u65b0\u305f\u306a\u30e1\u30b8\u30e3\u30fc\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001<a href=\"https:\/\/www.php.net\/releases\/8.2\/en.php\">PHP 8.2<\/a>\u306e\u30ea\u30ea\u30fc\u30b9\u306b\u4f34\u3044\u3001PHP 8.2\u306e\u65b0\u6a5f\u80fd\u3084\u6539\u5584\u70b9\u3001\u975e\u63a8\u5968\u6a5f\u80fd\u3001\u5909\u66f4\u70b9\u306a\u3069\u3092\u8a73\u3057\u304f\u3054\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u203b\u3053\u306e\u8a18\u4e8b\u306f\u3001PHP 8.2\u306e\u30ea\u30ea\u30fc\u30b9\u524d\u306b\u57f7\u7b46\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u30012022\u5e747\u670819\u65e5\u306b\u5185\u5bb9\u304c\u51cd\u7d50\u3055\u308c\u3066\u304a\u308a\u3001\u3054\u7d39\u4ecb\u3059\u308b\u5185\u5bb9\u306b\u9055\u3044\u306f\u307b\u3068\u3093\u3069\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001\u65e9\u901f\u672c\u984c\u306b\u5165\u308a\u307e\u3057\u3087\u3046\uff01<\/p>\n<div><\/div><kinsta-auto-toc heading=\"Table of Contents\" exclude=\"last\" list-style=\"arrow\" selector=\"h2\" count-number=\"-1\"><\/kinsta-auto-toc>\n<h2>PHP 8.2\u306e\u65b0\u6a5f\u80fd\u3068\u6539\u5584\u70b9<\/h2>\n<p>\u307e\u305a\u306f\u3001PHP 8.2\u306e\u6700\u65b0\u306e\u6a5f\u80fd\u3092\u3059\u3079\u3066\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u901a\u308a\u3001\u304b\u306a\u308a\u5145\u5b9f\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div><\/div><kinsta-auto-toc list-style=\"disc\" selector=\"h3\" count-number=\"15\" sub-toc=\"true\"><\/kinsta-auto-toc>\n<h3><code>readonly<\/code>\u30af\u30e9\u30b9<\/h3>\n<p>PHP 8.1\u3067\u306f\u3001<a href=\"https:\/\/kinsta.com\/blog\/php-8-1\/#new-readonly-properties\">\u30af\u30e9\u30b9\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306b<code>readonly<\/code>\uff08\u8aad\u307f\u53d6\u308a\u5c02\u7528\uff09\u6a5f\u80fd<\/a>\u304c\u5c0e\u5165\u3055\u308c\u307e\u3057\u305f\u304c\u3001PHP 8.2\u3067\u306f\u3001<a href=\"https:\/\/wiki.php.net\/rfc\/readonly_classes\">\u30af\u30e9\u30b9\u5168\u4f53\u3092<code>readonly<\/code> \u3067\u5ba3\u8a00<\/a>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30af\u30e9\u30b9\u3092<code>readonly<\/code>\u3067\u5ba3\u8a00\u3057\u305f\u5834\u5408\u3001\u305d\u306e\u3059\u3079\u3066\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u81ea\u52d5\u7684\u306b<code>readonly<\/code>\u6a5f\u80fd\u3092\u7d99\u627f\u3057\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u3042\u308b\u30af\u30e9\u30b9\u3092<code>readonly<\/code>\u3067\u5ba3\u8a00\u3059\u308b\u3068\u3001\u305d\u306e\u30af\u30e9\u30b9\u306e\u3059\u3079\u3066\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u304c<code>readonly<\/code>\u3067\u5ba3\u8a00\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001PHP 8.1\u3067\u306f\u3001\u3059\u3079\u3066\u306e\u30af\u30e9\u30b9\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092<code>readonly<\/code>\u3068\u3057\u3066\u5ba3\u8a00\u3059\u308b\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u624b\u9593\u306e\u304b\u304b\u308b\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre><code class=\"language-php\">class MyClass\n{\npublic readonly string $myValue,\npublic readonly int $myOtherValue\npublic readonly string $myAnotherValue\npublic readonly int $myYetAnotherValue\n}<\/code><\/pre>\n<p>\u3055\u3089\u306b\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u5897\u3048\u308b\u5834\u5408\u3092\u60f3\u50cf\u3059\u308b\u3068\u6c17\u304c\u9060\u304f\u306a\u308a\u307e\u3059\u3002\u3057\u304b\u3057\u3001PHP 8.2\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\u3060\u3051\u3067OK\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-php\">readonly class MyClass\n{\npublic string $myValue,\npublic int $myOtherValue\npublic string $myAnotherValue\npublic int $myYetAnotherValue\n}<\/code><\/pre>\n<p>\u62bd\u8c61\u30af\u30e9\u30b9\u3084\u6700\u7d42\u30af\u30e9\u30b9\u3092<code>readonly<\/code>\u3067\u5ba3\u8a00\u3059\u308b\u3053\u3068\u3082\u3002 \u30ad\u30fc\u30ef\u30fc\u30c9\u306e\u9806\u756a\u3092\u610f\u8b58\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<pre><code class=\"language-php\">abstract readonly class Free {}\nfinal readonly class Dom {}<\/code><\/pre>\n<p>\u307e\u305f\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u6307\u5b9a\u305b\u305a\u306b<code>readonly<\/code>\u30af\u30e9\u30b9\u3092\u5ba3\u8a00\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\u3053\u306e\u5834\u5408\u3001\u4f9d\u7136\u3068\u3057\u3066\u5b50\u30af\u30e9\u30b9\u306f\u660e\u793a\u7684\u306b<code>readonly<\/code>\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5ba3\u8a00\u3067\u304d\u307e\u3059\u304c\u3001\u5b9f\u8cea\u3001\u52d5\u7684\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u8a31\u53ef\u3055\u308c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><code>readonly<\/code>\u30af\u30e9\u30b9\u306f\u578b\u4ed8\u304d\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u307f\u6301\u3064\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u500b\u3005\u306e<strong>\u8aad\u307f\u53d6\u308a\u5c02\u7528<\/strong>\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5ba3\u8a00\u3059\u308b\u5834\u5408\u3068\u540c\u3058\u30eb\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p>\u53b3\u5bc6\u306b\u578b\u4ed8\u3051\u3055\u308c\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5ba3\u8a00\u3067\u304d\u306a\u3044\u5834\u5408\u306f\u3001<code>mixed<\/code>\u578b\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u578b\u4ed8\u3051\u3055\u308c\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u6301\u305f\u306a\u3044<code>readonly<\/code>\u30af\u30e9\u30b9\u3092\u5ba3\u8a00\u3059\u308b\u3068\u3001\u300cFatal error\u300d\u304c\u751f\u3058\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">readonly class Type {\n    public $nope;\n}\nFatal error: Readonly property Type::$nope must have type in ... on line ... <\/code><\/pre>\n<p>\u307e\u305f\u3001\u4ee5\u4e0b\u306ePHP\u306e\u6a5f\u80fd\u306b\u5bfe\u3057\u3066\u3082<code>readonly<\/code>\u3092\u5ba3\u8a00\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<ul>\n<li><strong>\u5217\u6319\u578b<\/strong>\uff08<a href=\"https:\/\/kinsta.com\/blog\/php-8-1\/#enums\">\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u542b\u307e\u308c\u306a\u3044<\/a>\u305f\u3081\uff09<\/li>\n<li><strong>\u30c8\u30ec\u30a4\u30c8<\/strong><\/li>\n<li><strong>\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9<\/strong><\/li>\n<\/ul>\n<p>\u4e0a\u8a18\u6a5f\u80fd\u3092<code>readonly<\/code>\u3067\u5ba3\u8a00\u3059\u308b\u3068\u3001\u540c\u69d8\u306b\u300cParse error\u300d\u304c\u751f\u3058\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">readonly interface Destiny {}\nParse error: syntax error, unexpected token \"interface\", expecting \"abstract\" or \"final\" or \"readonly\" or \"class\" in ... on line ...<\/code><\/pre>\n<p>\u3059\u3079\u3066\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u3068\u540c\u69d8\u3001<code>readonly<\/code>\u306f\u5927\u6587\u5b57\u3068\u5c0f\u6587\u5b57\u3092\u533a\u5225\u3057\u307e\u305b\u3093\u3002<\/p>\n<p>PHP 8.2\u3067\u306f\u3001\u52d5\u7684\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u3082\u975e\u63a8\u5968\u3067\u3059\uff08\u5f8c\u307b\u3069\u8a73\u3057\u304f\u3054\u8aac\u660e\u3057\u307e\u3059\uff09\u3002\u52d5\u7684\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5b9a\u7fa9\u3092\u7981\u6b62\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u304c\u3001<code>readonly<\/code>\u30af\u30e9\u30b9\u3067\u5b9a\u7fa9\u3059\u308b\u3068\u3001\u300cFatal error\u300d\u304c\u8d77\u3053\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">Fatal error: Readonly property Test::$test must have type in ... on line ...<\/code><\/pre>\n<h3><code>true<\/code>\/<code>false<\/code>\/<code>null<\/code>\u304c\u72ec\u7acb\u3057\u305f\u578b\u3067\u4f7f\u7528\u53ef\u80fd\u306b<\/h3>\n<p>PHP \u306b\u306f\u3001\u5143\u3005<code>int<\/code>\u3001<code>string<\/code>\u3001<code>bool<\/code>\u306e\u3088\u3046\u306a\u30b9\u30ab\u30e9\u30fc\u578b\u304c\u3042\u308a\u307e\u3057\u305f\u304c\u3001PHP 8.0\u3067\u3055\u3089\u306b<a href=\"https:\/\/kinsta.com\/jp\/blog\/php-8\/#union-types-2-0\">union\u578b<\/a>\u304c\u8ffd\u52a0\u3055\u308c\u3001\u7570\u306a\u308b\u578b\u306e\u5024\u3092\u53d7\u3051\u5165\u308c\u3089\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u540c\u3058RFC\u3067\u306f\u3001<code>false<\/code> \u3068<code>null<\/code> \u3092union\u578b\u306e\u4e00\u90e8\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u304c\u3001\u72ec\u7acb\u3057\u305f\u578b\uff08\u30b9\u30bf\u30f3\u30c9\u30a2\u30ed\u30f3\u578b\uff09\u3068\u3057\u3066\u306f\u8a8d\u3081\u3089\u308c\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p><code>false<\/code> \u3084<code>null<\/code> \u3092union\u578b\u306e\u4e00\u90e8\u3068\u3057\u3066\u3067\u306f\u306a\u304f\u3001\u72ec\u7acb\u3057\u305f\u578b\u3068\u3057\u3066\u5ba3\u8a00\u3059\u308b\u3068\u3001\u300cFatal error\u300d\u304c\u751f\u3058\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">function spam(): null {}\nfunction eggs(): false {}\n\nFatal error: Null can not be used as a standalone type in ... on line ...\nFatal error: False can not be used as a standalone type in ... on line ...<\/code><\/pre>\n<p>\u3053\u308c\u3092\u56de\u907f\u3059\u308b\u305f\u3081\u3001PHP 8.2\u3067\u306f<a href=\"https:\/\/wiki.php.net\/rfc\/null-false-standalone-types\"><code>false<\/code>\u3068<code>null<\/code><\/a>\u3092\u72ec\u7acb\u3057\u305f\u578b\u3068\u3057\u3066\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002PHP\u578b\u30b7\u30b9\u30c6\u30e0\u306e\u8868\u73fe\u306e\u5e45\u304c\u5e83\u304c\u308a\u3001\u5b8c\u6210\u5ea6\u304c\u4e0a\u304c\u308a\u307e\u3057\u305f\u3002\u307e\u305f\u3001\u623b\u308a\u5024\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u3082\u660e\u793a\u7684\u306b\u5ba3\u8a00\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u52a0\u3048\u3066\u3001\u3053\u308c\u307e\u3067\u306a\u304b\u3063\u305f<code>false<\/code> \u578b\u3068\u5bfe\u3092\u306a\u3059<code>true<\/code>\u3082\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002<code>false<\/code>\u306e\u52d5\u4f5c\u3068\u307e\u3063\u305f\u304f\u540c\u3058\u3067\u3001\u5f37\u5236\u4e0d\u53ef\u3067\u3059\u3002PHP 8.2\u3067\u306f\u305d\u308c\u304c\u4fee\u6b63\u3055\u308c\u3001<a href=\"https:\/\/wiki.php.net\/rfc\/true-type\"><code class=\"c-mrkdwn__code\" data-stringify-type=\"code\">true<\/code>\u578b\u306e\u30b5\u30dd\u30fc\u30c8\u304c\u8ffd\u52a0<\/a>\u3055\u308c\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001<code class=\"c-mrkdwn__code\" data-stringify-type=\"code\">false<\/code>\u578b\u306e\u6319\u52d5\u3068\u540c\u69d8\u306b\u5f37\u5236\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p><code>true<\/code>\u3068<code>false<\/code>\u306f\u3001\u672c\u8cea\u7684\u306bPHP\u306e<code>bool<\/code>\u306eunion\u578b\u3002\u5197\u9577\u6027\u3092\u6392\u9664\u3059\u308b\u305f\u3081\u3001\u3053\u306e3\u3064\u3092\u4e00\u7dd2\u306bunion\u578b\u3067\u5ba3\u8a00\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u5ba3\u8a00\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u300cFatal error\u300d\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<h3>DNF\u578b<\/h3>\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Disjunctive_normal_form\">DNF\u578b<\/a>\u306f\u3001\u8ad6\u7406\u5f0f\u3092\u6b63\u898f\u5316\u3059\u308b\u6a19\u6e96\u7684\u624b\u6cd5\u3002\u9023\u8a00\u7bc0\uff08AND\uff09\u306e\u9078\u8a00\uff08OR\uff09\u306e\u5f62\u5f0f\u3067\u69cb\u6210\u3055\u308c\u3001\u30d6\u30fc\u30ea\u30a2\u30f3\u6f14\u7b97\u7528\u8a9e\u3067\u3044\u3046\u3068\u3053\u308d\u306e<strong>\u9078\u8a00\u6a19\u6e96\u5f62<\/strong>\u306b\u76f8\u5f53\u3057\u307e\u3059\u3002<\/p>\n<p>DNF\u3067\u578b\u5ba3\u8a00\u3092\u884c\u3046\u3053\u3068\u3067\u3001\u30d1\u30fc\u30b5\u304c\u6271\u3046\u3053\u3068\u306e\u3067\u304d\u308bunion\u578b\u3068<a href=\"https:\/\/kinsta.com\/blog\/php-8-1\/#pure-intersection-types\">Intersection\u578b<\/a>\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002PHP 8.2\u3067\u65b0\u305f\u306b\u767b\u5834\u3057\u305f<a href=\"https:\/\/wiki.php.net\/rfc\/dnf_types\">DNF\u578b<\/a>\u306f\u3001\u9069\u5207\u306b\u4f7f\u7528\u3059\u308c\u3070\u30b7\u30f3\u30d7\u30eb\u304b\u3064\u5f37\u529b\u3067\u3059\u3002<\/p>\n<p>RFC\u3067\u4f8b\u304c\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u5c1a\u3001\u4ee5\u4e0b\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304a\u3088\u3073\u30af\u30e9\u30b9\u5b9a\u7fa9\u304c\u3042\u308b\u3053\u3068\u3092\u524d\u63d0\u3068\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">interface A {}\ninterface B {}\ninterface C extends A {}\ninterface D {}\n\nclass W implements A {}\nclass X implements B {}\nclass Y implements A, B {}\nclass Z extends Y implements C {}<\/code><\/pre>\n<p>DNF\u578b\u306f\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u3001\u623b\u308a\u5024\u306b\u5bfe\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u578b\u5ba3\u8a00\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">\/\/ Accepts an object that implements both A and B,\n\/\/ OR an object that implements D\n(A&B)|D\n\n\/\/ Accepts an object that implements C, \n\/\/ OR a child of X that also implements D,\n\/\/ OR null\nC|(X&D)|null\n\n\/\/ Accepts an object that implements all three of A, B, and D, \n\/\/ OR an int, \n\/\/ OR null.\n(A&B&D)|int|null<\/code><\/pre>\n<p>\u30d7\u30ed\u30d1\u30c6\u30a3\u304cDNF\u578b\u3067\u306a\u3044\u5834\u5408\u3001\u30d1\u30fc\u30b9\u30a8\u30e9\u30fc\u304c\u8d77\u3053\u308a\u307e\u3059\u3002\u305d\u306e\u969b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">A&(B|D)\n\/\/ Can be rewritten as (A&B)|(A&D)\n\nA|(B&(D|W)|null)\n\/\/ Can be rewritten as A|(B&D)|(B&W)|null<\/code><\/pre>\n<p>\u306a\u304a\u3001DNF\u578b\u306e\u5404\u30bb\u30b0\u30e1\u30f3\u30c8\u306f\u4e00\u610f\u3067\u306a\u3051\u308c\u3070\u3044\u3051\u307e\u305b\u3093\u3002\u4f8b\u3048\u3070\u3001<code>(A&B)|(B&A)<\/code>\u3068\u5ba3\u8a00\u3057\u3066\u3082\u3001<strong>OR\u5f0f\u3067\u7d50\u5408\u3055\u308c\u305f<\/strong>2\u3064\u306e\u30bb\u30b0\u30e1\u30f3\u30c8\u306f\u8ad6\u7406\u4e0a\u540c\u3058\u3082\u306e\u3067\u3042\u308b\u305f\u3081\u3001\u7121\u52b9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u4ed6\u306e\u30bb\u30b0\u30e1\u30f3\u30c8\u306e\u90e8\u5206\u96c6\u5408\u3067\u3042\u308b\u30bb\u30b0\u30e1\u30f3\u30c8\u3082\u8a31\u53ef\u3055\u308c\u307e\u305b\u3093\u3002\u3053\u308c\u306f\u3001\u4e0a\u4f4d\u96c6\u5408\u304c\u3059\u3067\u306b\u30b5\u30d6\u30bb\u30c3\u30c8\u3059\u3079\u3066\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u6301\u3063\u3066\u304a\u308a\u3001DNF\u3092\u4f7f\u7528\u3059\u308b\u3068\u5197\u9577\u3067\u3042\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<h3>\u30d0\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u3067\u6a5f\u5bc6\u6027\u306e\u9ad8\u3044\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u51fa\u529b\u3092\u5236\u5fa1<\/h3>\n<p>\u591a\u304f\u306e<a href=\"https:\/\/kinsta.com\/blog\/best-programming-language-to-learn\/\">\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e<\/a>\u540c\u69d8\u3001<a href=\"https:\/\/kinsta.com\/php\/\">PHP<\/a>\u3067\u306f\u30b3\u30fc\u30c9\u306e\u5b9f\u884c\u4e2d\u306e\u4efb\u610f\u306e\u6642\u70b9\u3067\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u3092\u8868\u793a\u30fb\u8a18\u9332\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u3063\u3066\u3001\u30a8\u30e9\u30fc\u3084\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u554f\u984c\u3092\u4fee\u6b63\u3059\u308b\u305f\u3081\u306e\u30b3\u30fc\u30c9\u306e\u30c7\u30d0\u30c3\u30b0\u304c\u5bb9\u6613\u306b\u306a\u308a\u307e\u3059\u3002\u4f59\u8ac7\u3067\u3059\u304c\u3001WordPress\u30b5\u30a4\u30c8\u5411\u3051\u306bKinsta\u304c\u958b\u767a\u3057\u305f<a href=\"https:\/\/kinsta.com\/jp\/blog\/application-performance-monitoring\/\">\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u76e3\u8996\u30c4\u30fc\u30eb<\/a>\u3067\u3042\u308b\u300c<a href=\"https:\/\/kinsta.com\/jp\/apm-tool\/\">Kinsta APM<\/a>\u300d\u306e\u30d0\u30c3\u30af\u30dc\u30fc\u30f3\u3067\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_121608\" aria-describedby=\"caption-attachment-121608\" style=\"width: 1100px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-121608 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/04\/Kinsta-APM-WooCommerce-Admin-Slow-Transactions.jpg\" alt=\"Kinsta APM\u3067WooCommerce\u306e\u9045\u3044\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u8ffd\u8de1\" width=\"1100\" height=\"659\"><figcaption id=\"caption-attachment-121608\" class=\"wp-caption-text\">Kinsta APM\u3067WooCommerce\u306e\u9045\u3044\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u8ffd\u8de1<\/figcaption><\/figure>\n<p>\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u3092\u5b9f\u884c\u3057\u3066\u3082\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u9014\u4e2d\u3067\u505c\u6b62\u3059\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u901a\u5e38\u3001\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u306f\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u5b9f\u884c\u3055\u308c\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5f8c\u3067\u691c\u8a3c\u3067\u304d\u308b\u3088\u3046\u3001\u30ed\u30b0\u304c\u8a18\u9332\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001PHP\u306e\u8a73\u7d30\u306a\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u306b\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u3001\u74b0\u5883\u5909\u6570\u306a\u3069\u306e\u6a5f\u5bc6\u60c5\u5831\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e\u30b5\u30fc\u30d3\u30b9\uff08<a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-error-log\/\">\u30a8\u30e9\u30fc\u30ed\u30b0\u306e\u89e3\u6790<\/a>\u3084\u30a8\u30e9\u30fc\u306e\u8ffd\u8de1\u306a\u3069\uff09\u3068\u5171\u6709\u3059\u308b\u969b\u306b\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/wiki.php.net\/rfc\/redact_parameters_in_back_traces\">RFC\u306e\u63d0\u6848<\/a>\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<blockquote><p>\u300c\u5384\u4ecb\u306a\u554f\u984c\u300d\u3092\u5f15\u304d\u8d77\u3053\u3059\u306e\u3067\u77e5\u3089\u308c\u308b\u306e\u304c\u3001 PDO\uff08PHP Data Objects\uff09\u3067\u3059\u3002PDO\u306f\u3001\u7d14\u7c8b\u306a\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3068<strong>\u500b\u5225\u306e -&gt;connect()<\/strong>\u95a2\u6570\u3092\u6301\u305f\u305a\u306b\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u53d7\u3051\u53d6\u308a\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u5185\u3067\u3059\u3050\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u63a5\u7d9a\u3092\u8a66\u307f\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u306b\u5931\u6557\u3057\u305f\u5834\u5408\u3001\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u306b\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u542b\u307e\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002\uff08\u82f1\u8a9e\u539f\u6587\u306e\u65e5\u672c\u8a9e\u8a33\uff09<\/p>\n<pre><code class=\"language-php\">PDOException: SQLSTATE[HY000] [2002] No such file or directory in \/var\/www\/html\/test.php:3\nStack trace: #0 \/var\/www\/html\/test.php(3): PDO-&gt;__construct('mysql:host=loca...', 'root', 'password')\n#1 {main}<\/code><\/pre>\n<\/blockquote>\n<p>PHP 8.2\u3067\u306f\u3001<a href=\"https:\/\/wiki.php.net\/rfc\/redact_parameters_in_back_traces\">\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u3088\u3046\u306a\u6a5f\u5bc6\u6027\u306e\u9ad8\u3044\u30d1\u30e9\u30e1\u30fc\u30bf<\/a>\u3092<code>SensitiveParameter<\/code>\u5c5e\u6027\u3067\u30de\u30fc\u30af\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u6a5f\u5bc6\u6027\u304c\u9ad8\u3044\u3068\u5b9a\u7fa9\u3055\u308c\u305f\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u3001\u30d0\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u306b\u8868\u793a\u3055\u308c\u305a\u3001\u5916\u90e8\u30b5\u30fc\u30d3\u30b9\u306b\u5b89\u5fc3\u3057\u3066\u5171\u6709\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3068\u3057\u3066\u30011\u3064\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6a5f\u5bc6\u6027\u304c\u9ad8\u3044\u3082\u306e\u3068\u3057\u3066\u30de\u30fc\u30af\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">&lt;?php\n\nfunction example(\n    $ham,\n    #[SensitiveParameter] $eggs,\n    $butter\n) {\n    throw new Exception('Error');\n}\n\nexample('ham', 'eggs', 'butter');\n\n\/*\nFatal error: Uncaught Exception: Error in test.php:8\nStack trace:\n#0 test.php(11): test('ham', Object(SensitiveParameterValue), 'butter')\n#1 {main}\nthrown in test.php on line 8\n*\/<\/code><\/pre>\n<p>\u30d0\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u3092\u751f\u6210\u3059\u308b\u969b\u3001<code>SensitiveParameter<\/code>\u5c5e\u6027\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u3001<code>SensitiveParameterValue<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u3001\u5b9f\u969b\u306e\u5024\u304c\u4fdd\u5b58\u3055\u308c\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u4f55\u3089\u304b\u306e\u7406\u7531\u3067\u5b9f\u969b\u306e\u5024\u304c\u5fc5\u8981\u306b\u306a\u3063\u305f\u65b9\u5411\u3051\u306e\u60c5\u5831\u3068\u3057\u3066\u3001<code>SensitiveParameterValue<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u3088\u3063\u3066\u5024\u304c\u30ab\u30d7\u30bb\u30eb\u5316\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3><code>mysqli_execute_query<\/code>\u95a2\u6570\u3068<code>mysqli::execute_query<\/code>\u95a2\u6570<\/h3>\n<p>\u30d1\u30e9\u30e1\u30fc\u30bf\u5316\u3057\u305fMySQLi\u30af\u30a8\u30ea\u306e\u305f\u3081\u306b\u3001\u904e\u5270\u306b\u30a8\u30b9\u30b1\u30fc\u30d7\u51e6\u7406\u3092\u65bd\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u5024\u3067<code>mysqli_query()<\/code>\u95a2\u6570\u3092\u5b9f\u884c\u3057\u305f\u7d4c\u9a13\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f<\/p>\n<p>PHP 8.2\u3067\u306f\u3001<code>mysqli_execute_query($sql, $params)<\/code>\u95a2\u6570\u3068<code>mysqli::execute_query<\/code>\u95a2\u6570\u3067<a href=\"https:\/\/wiki.php.net\/rfc\/mysqli_execute_query\">\u30d1\u30e9\u30e1\u30fc\u30bf\u5316\u3057\u305fSQL\u6587\u306e\u5b9f\u884c\u304c\u3088\u308a\u7c21\u5358<\/a>\u306b\u884c\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u95a2\u6570\u306f\u3001<code>mysqli_prepare()<\/code>\u3001<code>mysqli_execute()<\/code>\u3001<code>mysqli_stmt_get_result()<\/code>\u95a2\u6570\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u3082\u306e\u3002SQL\u6587\u306e\u6e96\u5099\u3001\u30d0\u30a4\u30f3\u30c9\uff08\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6e21\u3057\u305f\u5834\u5408\uff09\u3001\u5b9f\u884c\u304c\u3053\u306e\u95a2\u6570\u5185\u3067\u884c\u308f\u308c\u307e\u3059\u3002\u30af\u30a8\u30ea\u304c\u6b63\u5e38\u306b\u5b9f\u884c\u3055\u308c\u308b\u3068\u3001<code>mysqli_result<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u8fd4\u3055\u308c\u3001\u5931\u6557\u3057\u305f\u5834\u5408\u306f<code>false<\/code>\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<p>RFC\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b7\u30f3\u30d7\u30eb\u304b\u3064\u4fbf\u5229\u306a\u4f8b\u304c\u63d0\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code class=\"\"language-php\">foreach ($db-&gt;execute_query('SELECT * FROM user WHERE name LIKE ? AND type_id IN (?, ?)', [$name, $type1, $type2]) as $row) {\nprint_r($row);\n}<\/code><\/pre>\n<h3>\u5b9a\u6570\u5f0f\uff08<code>const<\/code>\uff09\u3067<code>enum<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u53d6\u5f97<\/h3>\n<p><a href=\"https:\/\/wiki.php.net\/rfc\/fetch_property_in_const_expressions\">\u3053\u3061\u3089\u306eRFC<\/a>\u3067\u306f\u3001\u5b9a\u6570\u5f0f\uff08<code>const<\/code>\uff09\u3067\u306e<a href=\"https:\/\/kinsta.com\/blog\/php-8-1\/#enums\"><code>enum<\/code><\/a>\u30d7\u30ed\u30d1\u30c6\u30a3\u53d6\u5f97\u306e\u305f\u3081\u3001<code>-&gt;\/?-&gt;<\/code>\u6f14\u7b97\u5b50\u306e\u8a31\u53ef\u304c\u63d0\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u6a5f\u80fd\u304c\u5c0e\u5165\u3055\u308c\u305f\u4e3b\u306a\u7406\u7531\u306f\u3001\u914d\u5217\u306e\u30ad\u30fc\u306a\u3069\u3067\u3001<code>enum<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4f7f\u7528\u3067\u304d\u306a\u304b\u3063\u305f\u3053\u3068\u306b\u3042\u308a\u307e\u3059\u3002<code>enum<\/code>\u306e\u5024\u3092\u7e70\u308a\u8fd4\u3057\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><code>enum<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4f7f\u3048\u306a\u3044\u90e8\u5206\u3067<code>enum<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u53d6\u5f97\u3092\u8a31\u53ef\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u306e\u624b\u9806\u304c\u7c21\u7565\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u304c\u6709\u52b9\u306b\u3002<\/p>\n<pre><code class=\"language-php\">const C = [self::B-&gt;value =&gt; self::B];<\/code><\/pre>\n<p>\u307e\u305f\u3001\u3053\u306eRFC\u3067\u306f\u3001nullsafe \u6f14\u7b97\u5b50<code>?-&gt;<\/code>\u3082\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u30c8\u30ec\u30a4\u30c8\u3067\u306e\u5b9a\u6570\u4f7f\u7528\u3092\u8a31\u53ef<\/h3>\n<p>PHP\u306b\u306f\u3001\u30c8\u30ec\u30a4\u30c8\u3068\u547c\u3070\u308c\u308b\u30b3\u30fc\u30c9\u3092\u518d\u5229\u7528\u3059\u308b\u4ed5\u7d44\u307f\u304c\u3042\u308a\u3001\u30af\u30e9\u30b9\u9593\u3067\u306e\u30b3\u30fc\u30c9\u306e\u518d\u5229\u7528\u306b\u6709\u7528\u3067\u3059\u3002<\/p>\n<p>8.2\u4ee5\u524d\u306f\u3001\u95a2\u6570\u3068\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u307f\u5b9a\u7fa9\u53ef\u80fd\u3067\u3001\u5b9a\u6570\u306f\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3064\u307e\u308a\u3001\u3042\u308b\u30c8\u30ec\u30a4\u30c8\u304c\u3001\u671f\u5f85\u3059\u308b\u4e0d\u5909\u91cf\u3092\u305d\u306e\u30c8\u30ec\u30a4\u30c8\u81ea\u4f53\u3067\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u3053\u308c\u3092\u56de\u907f\u3059\u308b\u306b\u306f\u3001\u30c8\u30ec\u30a4\u30c8\u306e\u69cb\u6210\u30af\u30e9\u30b9\u304b\u3001\u305d\u306e\u69cb\u6210\u30af\u30e9\u30b9\u304c\u5b9f\u88c5\u3059\u308b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u5b9a\u6570\u3092\u5b9a\u7fa9\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p><a href=\"https:\/\/wiki.php.net\/rfc\/constants_in_traits\">\u3053\u306eRFC<\/a>\u3067\u30c8\u30ec\u30a4\u30c8\u3067\u306e\u5b9a\u6570\u306e\u4f7f\u7528\u3092\u8a31\u53ef\u3059\u308b\u3053\u3068\u304c\u63d0\u6848\u3055\u308c\u307e\u3057\u305f\u3002\u30af\u30e9\u30b9\u5b9a\u6570\u3092\u5b9a\u7fa9\u3059\u308b\u306e\u3068\u540c\u3058\u3088\u3046\u306b\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u3001\u308f\u304b\u308a\u3084\u3059\u3044RFC\u306e\u4f8b\u3092\u5f15\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">trait Foo {\n    public const FLAG_1 = 1;\n    protected const FLAG_2 = 2;\n    private const FLAG_3 = 2;\n\n    public function doFoo(int $flags): void {\n        if ($flags & self::FLAG_1) {\n            echo 'Got flag 1';\n        }\n        if ($flags & self::FLAG_2) {\n            echo 'Got flag 2';\n        }\n        if ($flags & self::FLAG_3) {\n        echo 'Got flag 3';\n        }\n    }\n}<\/code><\/pre>\n<p>\u30c8\u30ec\u30a4\u30c8\u306e\u5b9a\u6570\u306f\u3001\u30c8\u30ec\u30a4\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3084\u30e1\u30bd\u30c3\u30c9\u306e\u5b9a\u7fa9\u3068\u540c\u3058\u3088\u3046\u306b\u3001\u69cb\u6210\u3059\u308b\u30af\u30e9\u30b9\u306e\u5b9a\u7fa9\u306b\u30de\u30fc\u30b8\u3055\u308c\u3001\u305d\u3053\u306b\u306f\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u540c\u69d8\u306e\u5236\u7d04\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u51fa\u767a\u70b9\u3068\u3057\u3066\u306f\u8208\u5473\u6df1\u3044\u3082\u306e\u3067\u3059\u304c\u3001RFC\u3067\u3082\u6307\u6458\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u3001\u3053\u306e\u6a5f\u80fd\u3092\u5177\u4f53\u5316\u3059\u308b\u306b\u306f\u3055\u3089\u306a\u308b\u6539\u826f\u304c\u5fc5\u8981\u3068\u8a00\u3048\u307e\u3059\u3002<\/p>\n<h2>\u975e\u63a8\u5968\u306b\u306a\u308b\u6a5f\u80fd<\/h2>\n<p>\u7d9a\u3044\u3066\u3001PHP 8.2\u306e\u975e\u63a8\u5968\u4e8b\u9805\u3082\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002\u3053\u308c\u306b\u3064\u3044\u3066\u306f\u3001\u65b0\u6a5f\u80fd\u3068\u6bd4\u8f03\u3057\u3066\u305d\u308c\u307b\u3069\u591a\u304f\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<div><\/div><kinsta-auto-toc list-style=\"disc\" selector=\"h3\" count-number=\"15\" sub-toc=\"true\"><\/kinsta-auto-toc>\n<h3>\u52d5\u7684\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u7981\u6b62\uff08\u4ee3\u66ff\u306e<code>#[AllowDynamicProperties]<\/code>\u5c5e\u6027\uff09<\/h3>\n<p>PHP 8.1\u307e\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001<a href=\"https:\/\/kinsta.com\/blog\/php-vs-javascript\/#typing-of-variables\">\u5ba3\u8a00\u3055\u308c\u3066\u3044\u306a\u3044\u30af\u30e9\u30b9\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u52d5\u7684\u306b\u8a2d\u5b9a\u3001\u53d6\u308a\u51fa\u3059<\/a>\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<pre><code class=\"language-php\">class Post {\n    private int $pid;\n}\n\n$post = new Post();\n$post-&gt;name = 'Kinsta';<code class=\"language-php\"><\/code><\/code><\/pre>\n<p>\u4e0a\u8a18\u3067\u306f\u3001<code>Post<\/code>\u30af\u30e9\u30b9\u3067<code>name<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5ba3\u8a00\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001\u52d5\u7684\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u8a31\u53ef\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u30af\u30e9\u30b9\u5ba3\u8a00\u5916\u3067\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001PHP\u6700\u5927\uff08\u305d\u3057\u3066\u552f\u4e00\uff09\u306e\u30e1\u30ea\u30c3\u30c8\u3068\u8a00\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u52d5\u7684\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u3001\u30b3\u30fc\u30c9\u306b\u4e88\u671f\u305b\u306c\u30d0\u30b0\u3084\u304a\u304b\u3057\u306a\u6319\u52d5\u3092\u5f15\u304d\u8d77\u3053\u3059\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30af\u30e9\u30b9\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u30af\u30e9\u30b9\u5916\u3067\u5ba3\u8a00\u3059\u308b\u969b\u3001\u4f55\u304b\u3057\u3089\u306e\u30df\u30b9\u304c\u3042\u308b\u3068\u3001\u305d\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u898b\u843d\u3068\u3055\u308c\u304c\u3061\u3067\u3059\uff08\u7279\u306b\u305d\u306e\u30af\u30e9\u30b9\u5185\u306e\u30a8\u30e9\u30fc\u3092\u30c7\u30d0\u30c3\u30b0\u3059\u308b\u6642\uff09\u3002<\/p>\n<p>PHP 8.2\u4ee5\u964d\u306f\u3001<a href=\"https:\/\/wiki.php.net\/rfc\/deprecate_dynamic_properties\">\u52d5\u7684\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u975e\u63a8\u5968<\/a>\u306b\u306a\u308a\u307e\u3059\u3002\u5ba3\u8a00\u3055\u308c\u3066\u3044\u306a\u3044\u30af\u30e9\u30b9\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u5024\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u3001 \u6700\u521d\u306b\u8a2d\u5b9a\u3055\u308c\u305f\u6642\u70b9\u3067\u975e\u63a8\u5968\u306e\u901a\u77e5\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">class Foo {}\n$foo = new Foo;\n\n\/\/ Deprecated: Creation of dynamic property Foo::$bar is deprecated\n$foo-&gt;bar = 1;\n\n\/\/ No deprecation warning: Dynamic property already exists.\n$foo-&gt;bar = 2;<code class=\"language-php\"><\/code><\/code><\/pre>\n<p>PHP 9.0\u4ee5\u964d\u306f\u3001\u540c\u3058\u8a2d\u5b9a\u3092\u884c\u3046\u3068<code>ErrorException<\/code>\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30fc\u30c9\u306b\u52d5\u7684\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u591a\u304f\u542b\u307e\u308c\u3066\u3044\u3066\u3001PHP 8.2\u3078\u306e\u5207\u308a\u66ff\u3048\u5f8c\u3001\u3053\u306e\u975e\u63a8\u5968\u306e\u901a\u77e5\u3092\u505c\u6b62\u3057\u305f\u3044\u5834\u5408\u306b\u306f\u3001PHP 8.2\u306e\u65b0\u3057\u3044\u5c5e\u6027<code>#[AllowDynamicProperties]<\/code>\u3092\u4f7f\u7528\u3057\u3066\u3001\u30af\u30e9\u30b9\u306e\u52d5\u7684\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8a31\u53ef\u3059\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-php\">#[AllowDynamicProperties]\nclass Pets {}\nclass Cats extends Pets {}\n\n\/\/ You'll get no deprecation warning\n$obj = new Pets;\n$obj-&gt;test = 1;\n\n\/\/ You'll get no deprecation warning for child classes\n$obj = new Cats;\n$obj-&gt;test = 1;<\/code><\/pre>\n<p>RFC\u306b\u3088\u308b\u3068\u3001<code>#[AllowDynamicProperties]<\/code>\u5c5e\u6027\u306e\u4ed8\u3055\u308c\u305f\u30af\u30e9\u30b9\u3068\u305d\u306e\u5b50\u30af\u30e9\u30b9\u3067\u306f\u3001\u975e\u63a8\u5968\u5316\u3084\u524a\u9664\u3092\u5fc3\u914d\u3059\u308b\u3053\u3068\u306a\u304f\u3001\u52d5\u7684\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f7f\u3044\u7d9a\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001PHP 8.2\u3067\u306f\u3001<code>#[AllowDynamicProperties]<\/code>\u306b\u5206\u985e\u3055\u308c\u308b\u30d3\u30eb\u30c8\u30a4\u30f3\u30af\u30e9\u30b9\uff08\u5b9a\u7fa9\u6e08\u307f\u306e\u7a7a\u306e\u30af\u30e9\u30b9\uff09\u306f\u3001<code>stdClass<\/code>\u3060\u3051\u3067\u3042\u308b\u3053\u3068\u306b\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002\u307e\u305f\u3001<code>__get()<\/code>\u3084<code>__set()<\/code>\u306e<a href=\"https:\/\/www.php.net\/manual\/en\/language.oop5.magic.php\">\u30de\u30b8\u30c3\u30af\u30e1\u30bd\u30c3\u30c9<\/a>\u3067\u30a2\u30af\u30bb\u30b9\u3057\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u3001\u52d5\u7684\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u898b\u306a\u3055\u308c\u305a\u3001\u975e\u63a8\u5968\u306e\u901a\u77e5\u306f\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n<h3>\u90e8\u5206\u7684\u306b\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308bcallable<\/h3>\n<p>\u5927\u304d\u306a\u5f71\u97ff\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u3082\u3046\u3072\u3068\u3064\u306e\u5909\u66f4\u70b9\u3068\u3057\u3066\u3001<a href=\"https:\/\/wiki.php.net\/rfc\/deprecate_partially_supported_callables\">\u90e8\u5206\u7684\u306b\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308bcallable\u304c\u975e\u63a8\u5968<\/a>\u3068\u306a\u308b\u3053\u3068\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>callable\u306f<code>$callable()<\/code>\u304b\u3089\u76f4\u63a5\u64cd\u4f5c\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u305a\u3001<code>call_user_func($callable)<\/code>\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u547c\u3073\u51fa\u3057\u307e\u3059\u3002\u5bfe\u8c61\u3068\u306a\u308b\u306e\u306f\u3001\u4ee5\u4e0b\u306e\u901a\u308a\u3002<\/p>\n<pre><code class=\"language-php\">\"self::method\"\n\"parent::method\"\n\"static::method\"\n[\"self\", \"method\"]\n[\"parent\", \"method\"]\n[\"static\", \"method\"]\n[\"Foo\", \"Bar::method\"]\n[new Foo, \"Bar::method\"]<\/code><\/pre>\n<p>PHP 8.2\u4ee5\u964d\u306f\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306acallable\u3092<code>call_user_func()<\/code>\u3084<code>array_map()<\/code>\u95a2\u6570\u3067\u547c\u3073\u51fa\u3059\u3068\u3001\u975e\u63a8\u5968\u306e\u8b66\u544a\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u5143\u306eRFC\u3067\u306f\u3001\u975e\u63a8\u5968\u5316\u306e\u7406\u7531\u3092\u4ee5\u4e0b\u306e\u69d8\u306b\u660e\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote><p><em>\u6700\u5f8c\u306e2\u3064\u3092\u9664\u3044\u3066\u3001callable\u306f\u3059\u3079\u3066\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u4f9d\u5b58\u3057\u307e\u3059\u3002<code>\"self::method\"<\/code> \u304c\u53c2\u7167\u3059\u308b\u95a2\u6570\u306f\u3001\u547c\u3073\u51fa\u3057\u3084\u547c\u3073\u51fa\u3057\u53ef\u80fd\u6027\u30c1\u30a7\u30c3\u30af\u304c\u3069\u306e\u30af\u30e9\u30b9\u3067\u5b9f\u884c\u3055\u308c\u308b\u304b\u306b\u3088\u308a\u307e\u3059\u3002\u5b9f\u969b\u3001<code>[new Foo, \"parent::method\"]<\/code>\u306e\u5f62\u3067\u4f7f\u308f\u308c\u308b\u5834\u5408\u306f\u3001\u57fa\u672c\u7684\u306b\u6700\u5f8c\u306e2\u3064\u3082\u5f53\u3066\u306f\u307e\u308a\u307e\u3059\u3002<\/em><\/p>\n<p><em>callable\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u4f9d\u5b58\u6027\u3092\u4f4e\u6e1b\u3059\u308b\u306e\u304c\u3053\u306eRFC\u306e\u7b2c\u4e8c\u306e\u76ee\u6a19\u3067\u3059\u3002\u3053\u306e\u76ee\u6a19\u306e\u5b9f\u73fe\u5f8c\u3001\u6b8b\u308b\u5909\u6570\u306e\u30b9\u30b3\u30fc\u30d7\u306e\u4f9d\u5b58\u6027\u306f\u3001\u95a2\u6570\u306e\u53ef\u8996\u6027\u306e\u307f\u3002<code>\"Foo::bar\"<\/code>\u306f\u3001\u3042\u308b\u30b9\u30b3\u30fc\u30d7\u3067\u306f\u53ef\u8996\u3067\u3059\u304c\u3001\u5225\u306e\u30b9\u30b3\u30fc\u30d7\u3067\u306f\u4e0d\u53ef\u8996\u306b\u3002\u5c06\u6765\u7684\u306bcallable\u304cpublic\u95a2\u6570\u306b\u9650\u5b9a\u3055\u308c\u308b\u3068\u3059\u308c\u3070\uff08public\u95a2\u6570\u306f\u7b2c\u4e00\u7d1acallable\u304b<code>Closure::fromCallable()<\/code>\u3067\u3001\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u975e\u4f9d\u5b58\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308b\uff09\u3001callable\u304c\u660e\u793a\u7684\u306b\u5b9a\u7fa9\u3055\u308c\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u3057\u3066\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3067\u3057\u3087\u3046\u3002\u3057\u304b\u3057\u3001\u3053\u306eRFC\u3067\u53ef\u8996\u6027\u51e6\u7406\u306e\u5909\u66f4\u3092\u63d0\u6848\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\uff08\u82f1\u8a9e\u539f\u6587\u306e\u65e5\u672c\u8a9e\u8a33\uff09<\/em><\/p><\/blockquote>\n<p>\u5143\u3005\u306eRFC\u306b\u5f93\u3044\u3001<code>is_callable()<\/code>\u95a2\u6570\u3068<code>callable<\/code>\u30bf\u30a4\u30d7\u306f\u3001\u4e0a\u8a18callable\u3092\u9664\u3044\u3066\u3001\u5f15\u304d\u7d9a\u304d\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001PHP 9.0\u4ee5\u964d\u3067\u30b5\u30dd\u30fc\u30c8\u304c\u5b8c\u5168\u306b\u306a\u304f\u306a\u308b\u307e\u3067\u306e\u9593\u306b\u9650\u5b9a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u6df7\u4e71\u3092\u907f\u3051\u308b\u305f\u3081\u3001\u3053\u306e\u975e\u63a8\u5968\u901a\u77e5\u306e\u7bc4\u56f2\u306f<a href=\"https:\/\/wiki.php.net\/rfc\/partially-supported-callables-expand-deprecation-notices\">\u65b0\u3057\u3044RFC\u3067\u62e1\u5927<\/a>\u3055\u308c\u3001\u4f8b\u5916\u306b\u306a\u3063\u3066\u3044\u305f\u3082\u306e\u3082\u542b\u307e\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>PHP\u304c\u3001\u660e\u78ba\u306b\u5b9a\u7fa9\u3055\u308c\u305f<code>callable<\/code>\u578b\u306e\u30b5\u30dd\u30fc\u30c8\u306b\u5411\u304b\u3063\u3066\u3044\u308b\u306e\u306f\u826f\u3044\u5c55\u958b\u3067\u3059\u3002<\/p>\n<h3><code>#utf8_encode()<\/code>\u304a\u3088\u3073<code>utf8_decode()<\/code>\u95a2\u6570<\/h3>\n<p>PHP\u306e\u7d44\u307f\u8fbc\u307f\u95a2\u6570\u3067\u3042\u308b<code>utf8_encode()<\/code>\u304a\u3088\u3073<code>utf8_decode()<\/code>\u306f\u3001 ISO-8859-1\uff08Latin 1\uff09\u3067\u30a8\u30f3\u30b3\u30fc\u30c9\u3055\u308c\u305f\u6587\u5b57\u5217\u3092UTF-8\u306b\uff08\u307e\u305f\u306f\u53cd\u5bfe\u65b9\u5411\u306b\uff09\u5909\u63db\u3057\u307e\u3059\u3002<\/p>\n<p>\u3068\u3053\u308d\u304c\u3001\u3053\u306e\u95a2\u6570\u306e\u540d\u524d\u306f\u3001\u5b9f\u969b\u306e\u5b9f\u88c5\u7bc4\u56f2\u3092\u8d85\u3048\u3001\u4e00\u822c\u7684\u306a\u7528\u9014\u3092\u793a\u5506\u3059\u308b\u3082\u306e\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002Latin 1\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306f\u3001Windows Code Page 1252\u306e\u3088\u3046\u306a\u4ed6\u306e\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3068\u6df7\u540c\u3055\u308c\u304c\u3061\u3067\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001\u3053\u306e\u95a2\u6570\u304c\u6587\u5b57\u5217\u3092\u6b63\u3057\u304f\u5909\u63db\u3067\u304d\u306a\u3051\u308c\u3070\u3001<a href=\"https:\/\/ja.wikipedia.org\/wiki\/\u6587\u5b57\u5316\u3051\">\u6587\u5b57\u5316\u3051<\/a>\u304c\u767a\u751f\u3057\u307e\u3059\u3002\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306a\u3069\u306e\u901a\u77e5\u304c\u306a\u3044\u305f\u3081\u3001\u7279\u306b\u5224\u8aad\u53ef\u80fd\u306a\u30c6\u30ad\u30b9\u30c8\u306e\u4e2d\u3067\u3053\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u898b\u3064\u3051\u308b\u306e\u306f\u81f3\u96e3\u306e\u696d\u3002<\/p>\n<p>PHP 8.2\u3067\u306f\u3001<a href=\"https:\/\/wiki.php.net\/rfc\/remove_utf8_decode_and_utf8_encode\"><code>#utf8_encode()<\/code>\u3068<code>utf8_decode()<\/code>\u306f\u3069\u3061\u3089\u3082\u975e\u63a8\u5968<\/a>\u306b\u306a\u308a\u3001\u4f7f\u7528\u3059\u308b\u3068\u975e\u63a8\u5968\u306e\u901a\u77e5\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">Deprecated: Function utf8_encode() is deprecated\nDeprecated: Function utf8_decode() is deprecated<\/code><\/pre>\n<p>RFC\u3067\u306f\u3001\u4ee3\u66ff\u3068\u3057\u3066<code>mbstring<\/code>\u3001<code>iconv<\/code>\u3001<code>intl<\/code>\u306e\u3088\u3046\u306a<a href=\"https:\/\/kinsta.com\/jp\/blog\/install-php\/#all-about-php-extensions\">PHP\u304c\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u62e1\u5f35\u30e2\u30b8\u30e5\u30fc\u30eb<\/a>\u306e\u4f7f\u7528\u304c\u63d0\u6848\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3><code>${}<\/code>\u6587\u5b57\u5217\u88dc\u9593<\/h3>\n<p>PHP\u3067\u306f\u3001\u30c0\u30d6\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\uff08<code>\"<\/code>\uff09\u3084\u30d2\u30a2\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\uff08<code>&lt;&lt;&lt;<\/code>\uff09\u306b\u3088\u308b\u6587\u5b57\u5217\u3078\u306e\u5909\u6570\u306e\u57cb\u3081\u8fbc\u307f\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u5909\u6570\u3092\u76f4\u63a5\u57cb\u3081\u8fbc\u3080\u2500<code>\u201c$foo\u201d<\/code><\/li>\n<li>\u5909\u6570\u306e\u5916\u5074\u306b\u4e2d\u62ec\u5f27\u3092\u4ed8\u3051\u308b\u2500<code>\u201c{$foo}\u201d<\/code><\/li>\n<li>\u30c9\u30eb\u8a18\u53f7\u306e\u5f8c\u306b\u4e2d\u62ec\u5f27\u3092\u4ed8\u3051\u308b\u2500<code>\u201c${foo}\u201d<\/code><\/li>\n<li>\u5909\u6570\u2500<code>\u201c${expr}\u201d<\/code>\uff08<code>(string) ${expr}<\/code>\u3068\u540c\u7b49\uff09<\/li>\n<\/ol>\n<p>\u6700\u521d\u306e2\u3064\u306e\u65b9\u6cd5\u306b\u306f\u3001\u30e1\u30ea\u30c3\u30c8\u3068\u30c7\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u3001\u6700\u5f8c\u306e2\u3064\u306f\u69cb\u6587\u304c\u8907\u96d1\u304b\u3064\u77db\u76fe\u3057\u3066\u3044\u307e\u3059\u3002PHP 8.2\u3067\u306f\u3001<a href=\"https:\/\/wiki.php.net\/rfc\/deprecate_dollar_brace_string_interpolation\">\u6700\u5f8c\u306e2\u3064\u306e\u6587\u5b57\u5217\u88dc\u9593\u306f\u975e\u63a8\u5968<\/a>\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4eca\u5f8c\u306f\u3001\u3053\u306e\u65b9\u6cd5\u3092\u9078\u3070\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code class=\"language-php\">\"Hello, ${world}!\";\nDeprecated: Using ${} in strings is deprecated\n\n\"Hello, ${(world)}!\";\nDeprecated: Using ${} (variable variables) in strings is deprecated<\/code><\/pre>\n<p>PHP 9.0\u4ee5\u964d\u306f\u3001\u4f8b\u5916\u30a8\u30e9\u30fc\u3092\u6295\u3052\u308b\u3088\u3046\u306b\u6539\u5584\u3055\u308c\u308b\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n<h3>Base64\/QPrint\/Uuencode\/HTML-ENTITIES\uff08mbstring\u95a2\u6570\uff09<\/h3>\n<p>PHP\u306embstring\uff08\u30de\u30eb\u30c1\u30d0\u30a4\u30c8\u6587\u5b57\uff09\u95a2\u6570\u306f\u3001Unicode\u3084HTML-\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u3001\u305d\u306e\u4ed6\u306e\u30ec\u30ac\u30b7\u30fc\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306b\u6709\u7528\u3067\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u4e3b\u306b\u305d\u306e\u300c\u30ec\u30ac\u30b7\u30fc\u5316\u300d\u304c\u539f\u56e0\u3067\u3001\u6587\u5b57\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3067\u306f\u306a\u3044Base64\u3001Uuencode\u3001QPrint\u304c\u95a2\u6570\u306e\u4e00\u90e8\u3068\u3057\u3066\u6b8b\u3063\u3066\u3044\u307e\u3057\u305f\uff08\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u500b\u5225\u306e\u5b9f\u88c5\u3092\u542b\u3080\uff09\u3002<\/p>\n<p>HTML\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u306b\u95a2\u3057\u3066\u306f\u3001\u7d44\u307f\u8fbc\u307f\u95a2\u6570\uff08<code>htmlspecialchars()<\/code>\u3068<code>htmlentities()<\/code>\uff09\u3067\u3046\u307e\u304f\u51e6\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001mbstring\u3068\u306f\u7570\u306a\u308a\u3001\u3053\u306e\u7d44\u307f\u8fbc\u307f\u95a2\u6570\u306f<code>&lt;<\/code>\u00a0<code>&gt;<\/code>\u3001<code>&<\/code>\u306e\u6587\u5b57\u3092HTML\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u306b\u5909\u63db\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001<a href=\"https:\/\/kinsta.com\/blog\/php-8-1\/#html-encoding-and-decoding-functions-now-use-ent_quotes--ent_substitute\">PHP 8.1\u306eHTML\u30a8\u30f3\u30b3\u30fc\u30c9\/\u30c7\u30b3\u30fc\u30c9\u95a2\u6570<\/a>\u306e\u3088\u3046\u306b\u3001\u5e38\u306b\u7d44\u307f\u8fbc\u307f\u95a2\u6570\u306f\u6539\u826f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3057\u305f\u304c\u3063\u3066\u3001PHP 8.2\u3067\u306f\u3001\u6b21\u306e<a href=\"https:\/\/github.com\/php\/php-src\/commit\/9308974f8cc6c1046f228be5320fe067913ba987\">\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3078\u306embstring\u306e\u4f7f\u7528\u304c\u975e\u63a8\u5968<\/a>\u306b\u306a\u3063\u3066\u3044\u307e\u3059\uff08\u30e9\u30d9\u30eb\u306f\u5927\u6587\u5b57\/\u5c0f\u6587\u5b57\u3092\u533a\u5225\uff09\u3002<\/p>\n<ul>\n<li>BASE64<\/li>\n<li>UUENCODE<\/li>\n<li>HTML\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3<\/li>\n<li>html\uff08HTML\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u306e\u30a8\u30a4\u30ea\u30a2\u30b9\uff09<\/li>\n<li>Quoted-Printable<\/li>\n<li>qprint\uff08Quoted-Printable\u306e\u30a8\u30a4\u30ea\u30a2\u30b9\uff09<\/li>\n<\/ul>\n<p>PHP 8.2\u4ee5\u964d\u3001mbstring\u3092\u4f7f\u7528\u3057\u3066\u4e0a\u8a18\u306e\u30a8\u30f3\u30b3\u30fc\u30c9\/\u30c7\u30b3\u30fc\u30c9\u3092\u884c\u3046\u3068\u3001\u975e\u63a8\u5968\u306e\u901a\u77e5\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002PHP 9.0\u3067\u306f\u3001\u30b5\u30dd\u30fc\u30c8\u304c\u5b8c\u5168\u306b\u7d42\u4e86\u3059\u308b\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n<h2>\u305d\u306e\u4ed6\u306e\u7d30\u304b\u306a\u5909\u66f4\u70b9<\/h2>\n<p>\u6700\u5f8c\u306b\u3001PHP 8.2\u306e\u7d30\u304b\u306a\u5909\u66f4\u70b9\u3082\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<div><\/div><kinsta-auto-toc list-style=\"disc\" selector=\"h3\" count-number=\"15\" sub-toc=\"true\"><\/kinsta-auto-toc>\n<h3>mysqli\u304b\u3089libmysql\u306e\u30b5\u30dd\u30fc\u30c8\u3092\u7d42\u4e86<\/h3>\n<p>PHP 8.2\u306e\u524d\u306e\u6bb5\u968e\u3067\u3001<code>mysqli<\/code>\u3068<code>PDO_mysql<\/code>\u306e\u4e21\u65b9\u306e\u30c9\u30e9\u30a4\u30d0\u304c<code>mysqlnd<\/code>\u304a\u3088\u3073<code>libmysql<\/code>\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u5bfe\u3057\u3066\u30d3\u30eb\u30c9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u5143\u3005PHP 5.4\u4ee5\u964d\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u304a\u3088\u3073\u63a8\u5968\u30c9\u30e9\u30a4\u30d0\u306f<code>mysqlnd<\/code>\u3067\u3059\u3002<\/p>\n<p>\u305d\u308c\u305e\u308c\u30e1\u30ea\u30c3\u30c8\u3068\u30c7\u30e1\u30ea\u30c3\u30c8\u306f\u591a\u6570\u3042\u308a\u307e\u3059\u304c\u3001\u3069\u3061\u3089\u304b\u306e\u30b5\u30dd\u30fc\u30c8\u3092\u7d42\u4e86\uff08\u7406\u60f3\u7684\u306b\u306f<a href=\"https:\/\/wiki.php.net\/rfc\/mysqli_support_for_libmysql\"><code>libmysql<\/code>\u3092\u5ec3\u6b62<\/a>\uff09\u3059\u308b\u3053\u3068\u3067\u3001\u30b3\u30fc\u30c9\u3001\u5358\u4f53\u30c6\u30b9\u30c8\u306e\u7c21\u7d20\u5316\u304c\u671f\u5f85\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306b\u3064\u3044\u3066\u3001RFC\u3067\u306f<code>mysqlnd<\/code>\u306e\u30e1\u30ea\u30c3\u30c8\u304c\u6570\u591a\u304f\u6319\u3052\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>PHP\u306b\u30d0\u30f3\u30c9\u30eb\u3055\u308c\u3066\u3044\u308b<\/li>\n<li>PHP\u306e\u30e1\u30e2\u30ea\u7ba1\u7406\u3092\u5229\u7528\u3057\u3066\u30e1\u30e2\u30ea\u306e\u4f7f\u7528\u72b6\u6cc1\u3092\u76e3\u8996\u3059\u308b\u3053\u3068\u3067\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/laravel-performance\/\">\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a<\/a><\/li>\n<li>\u4f5c\u696d\u3092\u52b9\u7387\u5316\u3059\u308b\u95a2\u6570\u304c\u3042\u308b\uff08\u4f8b\uff1a<code>get_result()<\/code>\uff09<\/li>\n<li>PHP\u306e\u30cd\u30a4\u30c6\u30a3\u30d6\u578b\u3092\u4f7f\u7528\u3057\u305f\u6570\u5024\u306e\u8fd4\u308a\u5024<\/li>\n<li>\u5916\u90e8\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5fc5\u8981\u3068\u3057\u306a\u3044\u6a5f\u80fd\u6027<\/li>\n<li>\u4efb\u610f\u3067\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u6a5f\u80fd\u306e\u5229\u7528<\/li>\n<li>\u975e\u540c\u671f\u30af\u30a8\u30ea\u3092\u30b5\u30dd\u30fc\u30c8<\/li>\n<\/ul>\n<p>\u307e\u305f\u3001<code>libmysql<\/code>\u306e\u30e1\u30ea\u30c3\u30c8\u3082\u3044\u304f\u3064\u304b\u6319\u304c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u81ea\u52d5\u518d\u63a5\u7d9a\u304c\u53ef\u80fd\uff08<code>mysqlnd<\/code>\u306f\u3001\u7c21\u5358\u306b\u60aa\u7528\u3067\u304d\u3066\u3057\u307e\u3046\u6050\u308c\u304b\u3089\u610f\u56f3\u7684\u306b\u3053\u308c\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u306a\u3044\uff09<\/li>\n<li>LDAP\u304a\u3088\u3073SASL\u8a8d\u8a3c\u30e2\u30fc\u30c9\uff08<code>mysqlnd<\/code>\u306b\u3082<a href=\"https:\/\/github.com\/php\/php-src\/pull\/6447\">\u3053\u306e\u6a5f\u80fd\u304c\u5c0e\u5165<\/a>\u3055\u308c\u308b\u53ef\u80fd\u6027\u3042\u308a\uff09<\/li>\n<\/ul>\n<p><code>libmysql<\/code>\u306b\u3064\u3044\u3066\u306f\u3001PHP\u306e\u30e1\u30e2\u30ea\u30e2\u30c7\u30eb\u3068\u306e\u975e\u4e92\u63db\u6027\u3001\u5ea6\u91cd\u306a\u308b\u30c6\u30b9\u30c8\u306e\u5931\u6557\u3001 \u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u9593\u3067\u306e\u6a5f\u80fd\u306e\u5dee\u306a\u3069\u3001\u6570\u3005\u306e\u30c7\u30e1\u30ea\u30c3\u30c8\u3082\u6319\u304c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u3092\u8003\u616e\u3057\u3001PHP 8.2\u3067\u306f<code>mysqli<\/code>\u3092<code>libmysql<\/code>\u306b\u30d3\u30eb\u30c9\u3059\u308b\u6a5f\u80fd\u304c\u975e\u63a8\u5968\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><code>libmysql<\/code>\u306e\u6a5f\u80fd\u3092\u5229\u7528\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u6a5f\u80fd\u306e\u8981\u6c42\u3068\u3057\u3066<code>mysqlnd<\/code>\u306b\u660e\u793a\u7684\u306b\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u306a\u304a\u3001\u81ea\u52d5\u518d\u63a5\u7d9a\u306e\u6a5f\u80fd\u306f\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<h3>\u30ed\u30b1\u30fc\u30eb\u306b\u4f9d\u5b58\u3057\u306a\u3044\u5927\u6587\u5b57\/\u5c0f\u6587\u5b57\u306e\u5909\u63db<\/h3>\n<p><a href=\"https:\/\/kinsta.com\/jp\/blog\/php-8\/\">PHP 8.0<\/a>\u3088\u308a\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u3001PHP\u306e\u30ed\u30b1\u30fc\u30eb\u306f\u30b7\u30b9\u30c6\u30e0\u74b0\u5883\u304b\u3089\u7d99\u627f\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u4e00\u90e8\u30a8\u30c3\u30b8\u30b1\u30fc\u30b9\u3067\u554f\u984c\u3092\u5f15\u304d\u8d77\u3053\u3059\u61f8\u5ff5\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>Linux\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u8a00\u8a9e\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u3001<a href=\"https:\/\/kinsta.com\/blog\/linux-commands\/\">\u305d\u306e\u7d44\u307f\u8fbc\u307f\u30b3\u30de\u30f3\u30c9<\/a>\u306b\u9069\u5207\u306a\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u8a00\u8a9e\u304c\u8a2d\u5b9a\u3055\u308c\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u3053\u308c\u306fC\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u6587\u5b57\u5217\u51e6\u7406\u6a5f\u80fd\u306e\u52d5\u4f5c\u65b9\u6cd5\u304c\u5909\u66f4\u3055\u308c\u3066\u3057\u307e\u3046\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001Linux\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u3001\u30c8\u30eb\u30b3\u8a9e\u3084\u30ab\u30b6\u30d5\u8a9e\u3092\u9078\u629e\u3057\u305f\u5834\u5408\u3001\u5927\u6587\u5b57\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b<code>toupper('i')<\/code> \u3092\u547c\u3073\u51fa\u3059\u3068\u3001<a href=\"https:\/\/www.wikiwand.com\/en\/%C4%B0\">\u30c9\u30c3\u30c8\u4ed8\u304d\u306e\u5927\u6587\u5b57\u300cI\u300d<\/a>\uff08U+0130\u3001<code>\u0130<\/code>\uff09\u304c\u53d6\u5f97\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>PHP 8.0\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c<code>setlocale()<\/code>\u3067\u660e\u793a\u7684\u306b\u5909\u66f4\u3092\u52a0\u3048\u306a\u3044\u9650\u308a\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30ed\u30b1\u30fc\u30eb\u3092\u300cC\u300d\u306b\u8a2d\u5b9a\u3057\u3001\u3053\u306e\u554f\u984c\u3092\u56de\u907f\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>PHP 8.2\u3067\u306f\u3001\u3055\u3089\u306b<a href=\"https:\/\/wiki.php.net\/rfc\/strtolower-ascii\">\u5927\u6587\u5b57\u3068\u5c0f\u6587\u5b57\u306e\u5909\u63db\u6642\u306b\u30ed\u30b1\u30fc\u30eb\u306e\u533a\u5225\u3092\u3057\u306a\u3044<\/a>\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u306eRFC\u3067\u306f\u3001\u4e3b\u306b<code>strtolower()<\/code>\u3001<code>strtoupper()<\/code>\u304a\u3088\u3073\u95a2\u9023\u3059\u308b\u95a2\u6570\u3092\u5909\u66f4\u3057\u3066\u3044\u307e\u3059\u3002\u5f71\u97ff\u3092\u53d7\u3051\u308b\u95a2\u6570\u306e\u4e00\u89a7\u306f\u3001RFC\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u56fd\u3084\u5730\u57df\u306e\u8a00\u8a9e\u3092\u9451\u307f\u305f\u5927\u6587\u5b57\u3068\u5c0f\u6587\u5b57\u306e\u5909\u63db\u304c\u5fc5\u8981\u306a\u5834\u5408\u306b\u306f\u3001<code>mb_strtolower()<\/code>\u3092\u4f7f\u3063\u3066\u5b9f\u884c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>\u4e71\u6570\u306e\u6539\u826f<\/h3>\n<p>\u73fe\u5728\u3001PHP\u306e<a href=\"https:\/\/wiki.php.net\/rfc\/rng_extension\">\u4e71\u6570\u3092\u751f\u6210\u3059\u308b\u6a5f\u80fd\u306e\u898b\u76f4\u3057<\/a>\u304c\u8a08\u753b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u6a5f\u80fd\u306f\u3001\u73fe\u72b6<a href=\"https:\/\/en.wikipedia.org\/wiki\/Mersenne_Twister\">\u30e1\u30eb\u30bb\u30f3\u30cc\u30fb\u30c4\u30a4\u30b9\u30bf<\/a>\uff08\u4e71\u6570\u751f\u6210\u5668\uff09\u306b\u5927\u304d\u304f\u4f9d\u5b58\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001PHP\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u9818\u57df\u306b\u4fdd\u5b58\u3055\u308c\u3066\u304a\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u6700\u521d\u306e\u30b7\u30fc\u30c9\u751f\u6210\u304b\u3089\u610f\u56f3\u3057\u305f\u5229\u7528\u307e\u3067\u306e\u9593\u306b\u4e71\u6570\u751f\u6210\u6a5f\u80fd\u3092\u5c0e\u5165\u3059\u308b\u3068\u3001\u30b3\u30fc\u30c9\u304c\u58ca\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30fc\u30c9\u304c\u5916\u90e8\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u3053\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u306e\u4fdd\u5b88\u306f\u3055\u3089\u306b\u96e3\u6613\u5ea6\u304c\u4e0a\u304c\u308a\u307e\u3059\u3002<\/p>\n<p>\u3057\u305f\u304c\u3063\u3066\u3001PHP\u306e\u73fe\u5728\u306e\u4e71\u6570\u751f\u6210\u6a5f\u80fd\u3067\u306f\u3001\u30e9\u30f3\u30c0\u30e0\u306a\u5024\u3092\u4e00\u8cab\u3057\u3066\u518d\u73fe\u3067\u304d\u3066\u3044\u307e\u305b\u3093\u3002<a href=\"http:\/\/simul.iro.umontreal.ca\/testu01\/tu01.html\">TestU01\u306eCrush\u3084BigCrush<\/a> \u306e\u3088\u3046\u306a\u3001\u4e00\u69d8\u4e71\u6570\u751f\u6210\u5668\u306e\u7d4c\u9a13\u7684\u306a\u7d71\u8a08\u30c6\u30b9\u30c8\u3055\u3048\u5931\u6557\u3057\u3066\u3044\u307e\u3059\u3002\u3055\u3089\u306b\u300132\u30d3\u30c3\u30c8\u3068\u3044\u3046\u30e1\u30eb\u30bb\u30f3\u30cc\u30fb\u30c4\u30a4\u30b9\u30bf\u306e\u5236\u9650\u304c\u72b6\u6cc1\u3092\u60aa\u5316\u3055\u305b\u308b\u3053\u3068\u306b\u3002<\/p>\n<p>\u6697\u53f7\u9762\u3067\u5b89\u5168\u306a\u4e71\u6570\u306e\u751f\u6210\u304c\u5fc5\u8981\u306b\u306a\u308b\u5834\u5408\u3001PHP\u306e\u7d44\u307f\u8fbc\u307f\u95a2\u6570\u3001<code>shuffle()<\/code>\u3001<code>str_shuffle()<\/code>\u3001<code>array_rand()<\/code>\u306e\u4f7f\u7528\u306f\u63a8\u5968\u3055\u308c\u307e\u305b\u3093\u3002<code>random_int()<\/code>\u3084\u985e\u4f3c\u306e\u95a2\u6570\u3092\u4f7f\u3063\u305f\u3001\u65b0\u305f\u306a\u95a2\u6570\u306e\u5b9f\u88c5\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001RFC\u306e\u6295\u7968\u304c\u958b\u59cb\u3055\u308c\u305f\u5f8c\u3001<a href=\"https:\/\/wiki.php.net\/rfc\/random_extension_improvement\">\u3053\u306eRFC\u306b\u95a2\u3057\u3066\u3044\u304f\u3064\u304b\u306e\u61f8\u5ff5\u70b9<\/a>\u304c\u6307\u6458\u3055\u308c\u305f\u305f\u3081\u3001\u3059\u3079\u3066\u306e\u554f\u984c\u3092\u5225\u306eRFC\u306b\u8a18\u9332\u3057\u3066\u3001\u5404\u554f\u984c\u306b\u5bfe\u3057\u3066\u6295\u7968\u304c\u884c\u308f\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u4eca\u5f8c\u3001\u5408\u610f\u5f62\u6210\u306e\u4e0a\u3067\u9032\u3081\u3089\u308c\u308b\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n<h2>\u305d\u306e\u4ed6\u306eRFC<\/h2>\n<p>PHP 8.2\u306b\u306f\u3001\u591a\u304f\u306e\u65b0\u6a5f\u80fd\u3084\u7d30\u304b\u306a\u5909\u66f4\u70b9\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u3001\u4e0a\u8a18\u3067\u3054\u7d39\u4ecb\u3057\u3066\u3044\u306a\u3044\u305d\u306e\u4ed6\u306e\u6539\u5584\u70b9\u3067\u3059\u3002<\/p>\n<ol>\n<li><a href=\"https:\/\/github.com\/php\/php-src\/pull\/8720\"><strong><code>curl_upkeep<\/code><\/strong>\u95a2\u6570\u306e\u5c0e\u5165<\/a>\u2500Curl\u62e1\u5f35\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u5c0e\u5165\u3002\u57fa\u672c\u7684\u306aC\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3042\u308blibcurl\u5185\u306e<code>curl_easy_upkeep()<\/code>\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u3082\u306e\u3067\u3059\u3002<\/li>\n<li><a href=\"https:\/\/php.watch\/versions\/8.2\/ini_parse_quantity\"><strong><code>ini_parse_quantity<\/code><\/strong>\u95a2\u6570\u306e\u5c0e\u5165<\/a>\u2500php.ini\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3067\u306f\u3001\u30c7\u30fc\u30bf\u30b5\u30a4\u30ba\u306b\u4e57\u7b97\u306e\u63a5\u5c3e\u8f9e\u3092\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff0825\u30e1\u30ac\u30d0\u30a4\u30c8\u3092<code>25M<\/code>\u300142\u30ae\u30ac\u30d0\u30a4\u30c8\u3092<code>42G<\/code>\u3068\u8a18\u8ff0\u3059\u308b\u306a\u3069\uff09\u3002\u3053\u306e\u63a5\u5c3e\u8f9e\u306f\u3001php.ini\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u4e00\u822c\u7684\u3067\u3059\u304c\u3001\u4ed6\u3067\u306f\u3042\u307e\u308a\u898b\u3089\u308c\u307e\u305b\u3093\u3002\u3053\u306e\u95a2\u6570\u306f\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/increase-max-upload-size-wordpress\/#create-or-modify-the-phpini-file\">php.ini\u306e\u5024\u3092<\/a>\u30d1\u30fc\u30b9\u3057\u3001\u305d\u306e\u30c7\u30fc\u30bf\u30b5\u30a4\u30ba\u3092\u30d0\u30a4\u30c8\u5358\u4f4d\u3067\u8fd4\u3057\u307e\u3059\u3002<\/li>\n<li><a href=\"https:\/\/github.com\/php\/php-src\/pull\/8151\/files\"><code>memory_reset_peak_usage<\/code>\u95a2\u6570\u306e\u5c0e\u5165<\/a>\u2500<code>memory_get_peak_usage<\/code>\u95a2\u6570\u306b\u3088\u3063\u3066\u8fd4\u3055\u308c\u308b\u30d4\u30fc\u30af\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u3092\u30ea\u30bb\u30c3\u30c8\u3059\u308b\u95a2\u6570\u3002\u540c\u3058\u51e6\u7406\u3092\u8907\u6570\u56de\u5b9f\u884c\u3057\u3001\u305d\u308c\u305e\u308c\u306e\u5b9f\u884c\u306e\u30d4\u30fc\u30af\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u3092\u8a18\u9332\u3059\u308b\u306e\u306b\u6709\u7528\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<li><a href=\"https:\/\/github.com\/php\/php-src\/pull\/7583\"> <code>preg_*<\/code>\u95a2\u6570\u3067\u4fee\u98fe\u5b50<code>\/n<\/code>\u3092\u30b5\u30dd\u30fc\u30c8<\/a>\u2500\u6b63\u898f\u8868\u73fe\u3067\u306f\u3001\u30e1\u30bf\u6587\u5b57<code>()<\/code>\u306f\u30b0\u30eb\u30fc\u30d7\u5316\u3092\u793a\u3057\u3001\u62ec\u5f27\u5185\u306e\u5f0f\u306b\u5408\u81f4\u3057\u305f\u3082\u306e\u304c\u3059\u3079\u3066\u8fd4\u3055\u308c\u307e\u3059\u3002PHP 8.2 \u3067\u306f\u3001\u3053\u306e\u6319\u52d5\u3092\u56de\u907f\u3059\u308b\u4fee\u98fe\u5b50\uff08<code>\/n<\/code>\uff09\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/li>\n<li><a href=\"https:\/\/wiki.php.net\/rfc\/iterator_xyz_accept_array\"><code>iterator_*()<\/code>\u3067\u3059\u3079\u3066\u306e\u53cd\u5fa9\u3092\u30b5\u30dd\u30fc\u30c8<\/a>\u2500PHP 8.2\u4ee5\u524d\u3067\u306f\u3001<code>iterator_*()<\/code>\u30d1\u30bf\u30fc\u30f3\u306f\u3001 <code>Traversables<\/code>\u3057\u304b\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3053\u308c\u304c\u4e0d\u5fc5\u8981\u306a\u5236\u9650\u3067\u3042\u308b\u3068\u5224\u65ad\u3055\u308c\u3001\u5168\u3066\u306e\u53cd\u5fa9\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u308b\u3088\u3046\u306b\u6539\u5584\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ol>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>PHP 8.2\u306f\u3001PHP 8.0\u3068PHP 8.1\u3067\u884c\u308f\u308c\u305f\u5927\u898f\u6a21\u306a\u6539\u826f\u3092\u571f\u53f0\u3068\u3057\u3066\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u30e1\u30b8\u30e3\u30fc\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u3059\u3002\u7279\u306b\u9b45\u529b\u7684\u306a\u306e\u306f\u3001\u72ec\u7acb\u3057\u305f\u578b\u3001\u8aad\u307f\u53d6\u308a\u5c02\u7528\u30d7\u30ed\u30d1\u30c6\u30a3\u3001\u305d\u3057\u3066\u591a\u304f\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u9762\u3067\u306e\u6539\u5584\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>Kinsta\u3067\u3082<a href=\"https:\/\/kinsta.com\/jp\/blog\/php-benchmarks\/\">PHP 8.2\u306e\u30d9\u30f3\u30c1\u30de\u30fc\u30af<\/a>\u3092\u69d8\u3005\u306a<a href=\"https:\/\/kinsta.com\/jp\/blog\/php-frameworks\/\">PHP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<\/a>\u3084<a href=\"https:\/\/kinsta.com\/jp\/wordpress-market-share\/\">CMS<\/a>\u3067\u884c\u3048\u308b\u3053\u3068\u3092\u697d\u3057\u307f\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>PHP 8.2\u306e\u30ea\u30ea\u30fc\u30b9\u306b\u3042\u305f\u3063\u3066\u3001\u3053\u306e\u8a18\u4e8b\u304c\u304a\u5f79\u306b\u7acb\u3066\u305f\u3089\u5e78\u3044\u3067\u3059\u3002<\/p>\n<p><em>PHP 8.2\u306e\u4e00\u62bc\u3057\u6a5f\u80fd\u306f\u3042\u308a\u307e\u3059\u304b\uff1f\u307e\u305f\u3001\u3069\u306e\u975e\u63a8\u5968\u6a5f\u80fd\u306b\u8cdb\u6210\u3067\u3059\u304b\uff1f\u4ee5\u4e0b\u306e\u30b3\u30e1\u30f3\u30c8\u6b04\u3067\u305c\u3072\u304a\u805e\u304b\u305b\u304f\u3060\u3055\u3044\u3002<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP 8.2\u306f\u3001PHP 8.0\u3068PHP 8.1\u3067\u78ba &#8230;<\/p>\n","protected":false},"author":117,"featured_media":40176,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kinsta_gated_content":false,"_kinsta_gated_content_redirect":"","footnotes":""},"tags":[],"topic":[798],"class_list":["post-37016","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","topic-php-updates"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.6 (Yoast SEO v24.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHP 8.2\u306e\u65b0\u6a5f\u80fd\uff08\uff0b\u975e\u63a8\u5968\u6a5f\u80fd\u3068\u5909\u66f4\u70b9\uff09<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u30012022\u5e7412\u67088\u65e5\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305fPHP 8.2\u306e\u65b0\u6a5f\u80fd\u3001\u305d\u3057\u3066\u975e\u63a8\u5968\u306b\u306a\u3063\u305f\u6a5f\u80fd\u3068\u5909\u66f4\u70b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP 8.2\u306e\u65b0\u6a5f\u80fd\uff08\uff0b\u975e\u63a8\u5968\u6a5f\u80fd\u3068\u5909\u66f4\u70b9\uff09\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u30012022\u5e7412\u67088\u65e5\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305fPHP 8.2\u306e\u65b0\u6a5f\u80fd\u3001\u305d\u3057\u3066\u975e\u63a8\u5968\u306b\u306a\u3063\u305f\u6a5f\u80fd\u3068\u5909\u66f4\u70b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Kinsta\u00ae\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-20T15:08:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-25T15:09:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/09\/php-82.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1460\" \/>\n\t<meta property=\"og:image:height\" content=\"730\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Salman Ravoof\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u30012022\u5e7412\u67088\u65e5\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305fPHP 8.2\u306e\u65b0\u6a5f\u80fd\u3001\u305d\u3057\u3066\u975e\u63a8\u5968\u306b\u306a\u3063\u305f\u6a5f\u80fd\u3068\u5909\u66f4\u70b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/09\/php-82.png\" \/>\n<meta name=\"twitter:creator\" content=\"@salmanravoof\" \/>\n<meta name=\"twitter:site\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Salman Ravoof\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"6\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/\"},\"author\":{\"name\":\"Salman Ravoof\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/9cafd2eedd617e640eeea4cf3a5fd987\"},\"headline\":\"PHP 8.2\u306e\u65b0\u6a5f\u80fd\uff08\uff0b\u975e\u63a8\u5968\u6a5f\u80fd\u3068\u5909\u66f4\u70b9\uff09\",\"datePublished\":\"2022-09-20T15:08:11+00:00\",\"dateModified\":\"2023-08-25T15:09:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/\"},\"wordCount\":238,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/09\/php-82.png\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/\",\"url\":\"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/\",\"name\":\"PHP 8.2\u306e\u65b0\u6a5f\u80fd\uff08\uff0b\u975e\u63a8\u5968\u6a5f\u80fd\u3068\u5909\u66f4\u70b9\uff09\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/09\/php-82.png\",\"datePublished\":\"2022-09-20T15:08:11+00:00\",\"dateModified\":\"2023-08-25T15:09:31+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u30012022\u5e7412\u67088\u65e5\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305fPHP 8.2\u306e\u65b0\u6a5f\u80fd\u3001\u305d\u3057\u3066\u975e\u63a8\u5968\u306b\u306a\u3063\u305f\u6a5f\u80fd\u3068\u5909\u66f4\u70b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/#primaryimage\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/09\/php-82.png\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/09\/php-82.png\",\"width\":1460,\"height\":730,\"caption\":\"PHP 8.2\u306e\u65b0\u6a5f\u80fd\uff08\uff0b\u975e\u63a8\u5968\u6a5f\u80fd\u3068\u5909\u66f4\u70b9\uff09\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kinsta.com\/jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP\u66f4\u65b0\u60c5\u5831\",\"item\":\"https:\/\/kinsta.com\/jp\/topics\/php-updates\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"PHP 8.2\u306e\u65b0\u6a5f\u80fd\uff08\uff0b\u975e\u63a8\u5968\u6a5f\u80fd\u3068\u5909\u66f4\u70b9\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kinsta.com\/jp\/#website\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"name\":\"Kinsta\u00ae\",\"description\":\"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9\",\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kinsta.com\/jp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\",\"name\":\"Kinsta\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"width\":500,\"height\":500,\"caption\":\"Kinsta\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\",\"https:\/\/x.com\/Kinsta_JP\",\"https:\/\/www.instagram.com\/kinstahosting\/\",\"https:\/\/www.linkedin.com\/company\/kinsta\/\",\"https:\/\/www.pinterest.com\/kinstahosting\/\",\"https:\/\/www.youtube.com\/c\/Kinsta\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/9cafd2eedd617e640eeea4cf3a5fd987\",\"name\":\"Salman Ravoof\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0c5885f75cb78473fb7408e5e49ad190?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0c5885f75cb78473fb7408e5e49ad190?s=96&d=mm&r=g\",\"caption\":\"Salman Ravoof\"},\"description\":\"Salman Ravoof is a self-taught web developer, writer, creator, and a huge admirer of Free and Open Source Software (FOSS). Besides tech, he's excited by science, philosophy, photography, arts, cats, and food. Learn more about him on his website, and connect with Salman on Twitter.\",\"sameAs\":[\"https:\/\/salmanravoof.com\",\"https:\/\/www.linkedin.com\/in\/salman-ravoof-5a749133\/\",\"https:\/\/x.com\/salmanravoof\"],\"url\":\"https:\/\/kinsta.com\/jp\/blog\/author\/salmanravoof\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"PHP 8.2\u306e\u65b0\u6a5f\u80fd\uff08\uff0b\u975e\u63a8\u5968\u6a5f\u80fd\u3068\u5909\u66f4\u70b9\uff09","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u30012022\u5e7412\u67088\u65e5\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305fPHP 8.2\u306e\u65b0\u6a5f\u80fd\u3001\u305d\u3057\u3066\u975e\u63a8\u5968\u306b\u306a\u3063\u305f\u6a5f\u80fd\u3068\u5909\u66f4\u70b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/","og_locale":"ja_JP","og_type":"article","og_title":"PHP 8.2\u306e\u65b0\u6a5f\u80fd\uff08\uff0b\u975e\u63a8\u5968\u6a5f\u80fd\u3068\u5909\u66f4\u70b9\uff09","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u30012022\u5e7412\u67088\u65e5\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305fPHP 8.2\u306e\u65b0\u6a5f\u80fd\u3001\u305d\u3057\u3066\u975e\u63a8\u5968\u306b\u306a\u3063\u305f\u6a5f\u80fd\u3068\u5909\u66f4\u70b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","og_url":"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/","og_site_name":"Kinsta\u00ae","article_publisher":"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","article_published_time":"2022-09-20T15:08:11+00:00","article_modified_time":"2023-08-25T15:09:31+00:00","og_image":[{"width":1460,"height":730,"url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/09\/php-82.png","type":"image\/png"}],"author":"Salman Ravoof","twitter_card":"summary_large_image","twitter_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u30012022\u5e7412\u67088\u65e5\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305fPHP 8.2\u306e\u65b0\u6a5f\u80fd\u3001\u305d\u3057\u3066\u975e\u63a8\u5968\u306b\u306a\u3063\u305f\u6a5f\u80fd\u3068\u5909\u66f4\u70b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","twitter_image":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/09\/php-82.png","twitter_creator":"@salmanravoof","twitter_site":"@Kinsta_JP","twitter_misc":{"\u57f7\u7b46\u8005":"Salman Ravoof","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"6\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/#article","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/"},"author":{"name":"Salman Ravoof","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/9cafd2eedd617e640eeea4cf3a5fd987"},"headline":"PHP 8.2\u306e\u65b0\u6a5f\u80fd\uff08\uff0b\u975e\u63a8\u5968\u6a5f\u80fd\u3068\u5909\u66f4\u70b9\uff09","datePublished":"2022-09-20T15:08:11+00:00","dateModified":"2023-08-25T15:09:31+00:00","mainEntityOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/"},"wordCount":238,"commentCount":0,"publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/09\/php-82.png","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kinsta.com\/jp\/blog\/php-8-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/","url":"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/","name":"PHP 8.2\u306e\u65b0\u6a5f\u80fd\uff08\uff0b\u975e\u63a8\u5968\u6a5f\u80fd\u3068\u5909\u66f4\u70b9\uff09","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/#primaryimage"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/09\/php-82.png","datePublished":"2022-09-20T15:08:11+00:00","dateModified":"2023-08-25T15:09:31+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u30012022\u5e7412\u67088\u65e5\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305fPHP 8.2\u306e\u65b0\u6a5f\u80fd\u3001\u305d\u3057\u3066\u975e\u63a8\u5968\u306b\u306a\u3063\u305f\u6a5f\u80fd\u3068\u5909\u66f4\u70b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kinsta.com\/jp\/blog\/php-8-2\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/#primaryimage","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/09\/php-82.png","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/09\/php-82.png","width":1460,"height":730,"caption":"PHP 8.2\u306e\u65b0\u6a5f\u80fd\uff08\uff0b\u975e\u63a8\u5968\u6a5f\u80fd\u3068\u5909\u66f4\u70b9\uff09"},{"@type":"BreadcrumbList","@id":"https:\/\/kinsta.com\/jp\/blog\/php-8-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kinsta.com\/jp\/"},{"@type":"ListItem","position":2,"name":"PHP\u66f4\u65b0\u60c5\u5831","item":"https:\/\/kinsta.com\/jp\/topics\/php-updates\/"},{"@type":"ListItem","position":3,"name":"PHP 8.2\u306e\u65b0\u6a5f\u80fd\uff08\uff0b\u975e\u63a8\u5968\u6a5f\u80fd\u3068\u5909\u66f4\u70b9\uff09"}]},{"@type":"WebSite","@id":"https:\/\/kinsta.com\/jp\/#website","url":"https:\/\/kinsta.com\/jp\/","name":"Kinsta\u00ae","description":"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9","publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kinsta.com\/jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/kinsta.com\/jp\/#organization","name":"Kinsta","url":"https:\/\/kinsta.com\/jp\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","width":500,"height":500,"caption":"Kinsta"},"image":{"@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","https:\/\/x.com\/Kinsta_JP","https:\/\/www.instagram.com\/kinstahosting\/","https:\/\/www.linkedin.com\/company\/kinsta\/","https:\/\/www.pinterest.com\/kinstahosting\/","https:\/\/www.youtube.com\/c\/Kinsta"]},{"@type":"Person","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/9cafd2eedd617e640eeea4cf3a5fd987","name":"Salman Ravoof","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0c5885f75cb78473fb7408e5e49ad190?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0c5885f75cb78473fb7408e5e49ad190?s=96&d=mm&r=g","caption":"Salman Ravoof"},"description":"Salman Ravoof is a self-taught web developer, writer, creator, and a huge admirer of Free and Open Source Software (FOSS). Besides tech, he's excited by science, philosophy, photography, arts, cats, and food. Learn more about him on his website, and connect with Salman on Twitter.","sameAs":["https:\/\/salmanravoof.com","https:\/\/www.linkedin.com\/in\/salman-ravoof-5a749133\/","https:\/\/x.com\/salmanravoof"],"url":"https:\/\/kinsta.com\/jp\/blog\/author\/salmanravoof\/"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/37016","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/users\/117"}],"replies":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/comments?post=37016"}],"version-history":[{"count":14,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/37016\/revisions"}],"predecessor-version":[{"id":40179,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/37016\/revisions\/40179"}],"alternate":[{"embeddable":true,"hreflang":"en","title":"English","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/37016\/translations\/en"},{"embeddable":true,"hreflang":"pt","title":"Portuguese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/37016\/translations\/pt"},{"embeddable":true,"hreflang":"fr","title":"French","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/37016\/translations\/fr"},{"embeddable":true,"hreflang":"it","title":"Italian","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/37016\/translations\/it"},{"embeddable":true,"hreflang":"de","title":"German","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/37016\/translations\/de"},{"embeddable":true,"hreflang":"es","title":"Spanish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/37016\/translations\/es"},{"embeddable":true,"hreflang":"ja","title":"Japanese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/37016\/translations\/jp"},{"embeddable":true,"hreflang":"nl","title":"Dutch","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/37016\/translations\/nl"},{"embeddable":true,"hreflang":"da","title":"Danish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/37016\/translations\/dk"},{"embeddable":true,"hreflang":"sv","title":"Swedish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/37016\/translations\/se"},{"href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/37016\/tree"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media\/40176"}],"wp:attachment":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media?parent=37016"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/tags?post=37016"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/topic?post=37016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}