{"id":989,"date":"2022-01-26T12:39:49","date_gmt":"2022-01-26T12:39:49","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2022\/01\/26\/5920192-how-to-check-the-php-version-in-hostinger\/"},"modified":"2026-03-16T12:12:09","modified_gmt":"2026-03-16T12:12:09","slug":"5920192-how-to-check-the-php-version-in-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/5920192-how-to-check-the-php-version-in-hostinger\/","title":{"rendered":"How to Check the PHP Version in Hostinger"},"content":{"rendered":"<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">The information below doesn&rsquo;t apply to websites created with <b>Hostinger Website Builder <\/b>&#128161;<\/p>\n<\/div><p>There are several ways to check the PHP version of your website &#128071;<\/p><h2 id=\"h_8e8f5b9284\">In the PHP Info Section<\/h2><p class=\"no-margin\">To check the PHP version of your website, go to the <b><a class=\"intercom-content-link\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\">Websites<\/a> <\/b>section and click on<b> Dashboard <\/b>next to the website in question. Then, search for <b>PHP Info<\/b> on the sidebar, and click on it:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/01\/0912a84f-7c51-4119-a7b3-a6a4fbe52c93.jpg\" alt=\"Checking the current PHP version of a website\" width=\"200\"><\/div><p class=\"no-margin\">Your current PHP version will be displayed at the top:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/01\/2534a031-e1a0-4040-993b-d7082bff38f0.jpg\" alt=\"Checking the current PHP version of a website\"><\/div><p class=\"no-margin\">To change it, go to the <b><a class=\"intercom-content-link\" href=\"\/support\/1575755-how-can-i-change-my-php-version\" target=\"_blank\" rel=\"noopener\">PHP configuration settings<\/a><\/b> &#128161;<\/p><h2 id=\"h_d55e86c91b\">In the File Manager<\/h2><p class=\"no-margin\">A different PHP version can be <b><a class=\"intercom-content-link\" href=\"\/support\/4047803-how-to-change-php-version-for-subfolders-or-subdomains\" target=\"_blank\" rel=\"noopener\">applied to a specific folder or subdomain<\/a><\/b>.<\/p><p class=\"no-margin\">To check if the change was done correctly:<\/p><ol>\n<li>\n<p class=\"no-margin\">Access the folder you want to test<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Create a new <b>.php<\/b> file (e.g., <code>phpinfo.php<\/code>)<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Add the following code to the file:<\/p>\n<\/li>\n<\/ol><pre><code>&lt;?php\r\n\/\/ Show all information, defaults to INFO_ALL\r\nphpinfo();\r\n?&gt;<\/code><\/pre><p class=\"no-margin\">The file will look like this:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/01\/49b43ffe-de4a-4a4b-b99c-0af7a42b5c40.jpg\" alt=\"Checking the current PHP version of a folder\" width=\"400\"><\/div><p class=\"no-margin\">After this, access this file by the URL: type your domain name, then the folder name, and add the filename. For the file above, the path would be:<\/p><pre><code>https:\/\/domain.tld\/subdomain\/phpinfo.php<\/code><\/pre><p class=\"no-margin\">The PHP version should be displayed at the top:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/01\/34b51d17-9be6-4e4c-a5a3-3c10b35624e8.jpg\" alt=\"Checking the current PHP version of a folder\"><\/div><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">Changing the PHP version using files is <b>not recommended<\/b>, as it doesn&rsquo;t include PHP extensions and options. Thus, it might affect the website&rsquo;s work &#128161;<\/p>\n<\/div><div class=\"intercom-interblocks-callout\" style=\"background-color: #feedaf80;border-color: #fbc91633\"><strong>NOTE<\/strong>: If you&rsquo;re using PHP 8.1 or below, these versions are deprecated and no longer receive security updates. For optimal security and compatibility, we recommend upgrading to PHP 8.2 or PHP 8.3. Learn how to update your PHP version: <a class=\"underline underline underline-offset-2 decoration-1 decoration-current\/40 hover:decoration-current focus:decoration-current\" href=\"https:\/\/www.hostinger.com\/support\/1575755-how-to-change-the-php-version-of-your-hostinger-hosting-plan\/\">How to Change the PHP Version of Your Hostinger Hosting Plan<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Checking the PHP version of a website, subdomain, or specific folders<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[234],"tags":[],"class_list":["post-989","post","type-post","status-publish","format-standard","hentry","category-php-versions"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/5920192-how-to-check-the-php-version-in-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/5920192-como-revisar-la-version-de-php-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/5920192-comment-verifier-la-version-de-php-chez-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/5920192-cara-cek-versi-php-di-hostinger\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/5920192-como-verificar-a-versao-php-na-hostinger\/","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/5920192----php--hostinger\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=989"}],"version-history":[{"count":5,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/989\/revisions"}],"predecessor-version":[{"id":7047,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/989\/revisions\/7047"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}