# Php8 version?

**URL:** <https://forum.infinityfree.com/t/php8-version/79401>\
**Category:** Hosting Support\
**Created:** [July 21, 2023, 4:26pm UTC](https://forum.infinityfree.com/t/php8-version/79401 "2023-07-21T16:26:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon17004936](https://forum.infinityfree.com/letter_avatar/anon17004936/32/6_449c533f586939b6e5f246632a46421f.png) [@anon17004936](https://forum.infinityfree.com/u/anon17004936)\
**Post date:** [July 21, 2023, 4:26pm UTC](https://forum.infinityfree.com/t/php8-version/79401/1 "2023-07-21T16:26:49Z")

</div>

my website needs 8.1 what php8 version was used

---

<div class="post-metadata">

**Author:** ![anon90933456](https://forum.infinityfree.com/letter_avatar/anon90933456/32/6_449c533f586939b6e5f246632a46421f.png) [@anon90933456](https://forum.infinityfree.com/u/anon90933456)\
**Post date:** [July 21, 2023, 4:40pm UTC](https://forum.infinityfree.com/t/php8-version/79401/2 "2023-07-21T16:40:52Z")

</div>

We’re going to deploy PHP 8.1 when all missing extensions are being sorted out. In the meanwhile, your account may or may not have it; you can check by yourself by doing what I explained on some guy that needed to know the PHP version on his hosting account server here:

> [@PHP version](https://forum.infinityfree.com/t/php-version/78535/2):
>
> You can create a phpinfo.php file on your domain’s htdocs folder with this content: \<?=phpinfo()?\> and when you visit it through your browser it should show the PHP version and all the extensions enabled on that PHP version and the technical info as well.

---

<div class="post-metadata">

**Author:** ![anon17004936](https://forum.infinityfree.com/letter_avatar/anon17004936/32/6_449c533f586939b6e5f246632a46421f.png) [@anon17004936](https://forum.infinityfree.com/u/anon17004936)\
**Post date:** [July 21, 2023, 5:00pm UTC](https://forum.infinityfree.com/t/php8-version/79401/3 "2023-07-21T17:00:43Z")

</div>

> [@PHP version](https://forum.infinityfree.com/t/php-version/78535/2):
>
> \<?=phpinfo()?\>

i did that but it gave me an 500 error

---

<div class="post-metadata">

**Author:** ![anon90933456](https://forum.infinityfree.com/letter_avatar/anon90933456/32/6_449c533f586939b6e5f246632a46421f.png) [@anon90933456](https://forum.infinityfree.com/u/anon90933456)\
**Post date:** [July 21, 2023, 5:03pm UTC](https://forum.infinityfree.com/t/php8-version/79401/4 "2023-07-21T17:03:08Z")

</div>

Can you enable `display_errors` to see what’s the problem? Here’s an article:

> [@Http error 500](https://forum.infinityfree.com/t/http-error-500/49352/1):
>
> When trying to access your website, you may see a page which returns the status code “500”. In Google Chrome, you’ll see a page with the error code HTTP ERROR 500. There are typically two reasons which can cause this error: The PHP code has crashed. The .htaccess file contains invalid rules. Here are some things you can try to debug and fix this. Fixing crashing PHP code A HTTP ERROR 500 simply tells you that the PHP code has crashed, but gives no information as to why it has crashed. Gett…

Also what GR9 (don’t want to tag him) posted below me.

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [July 21, 2023, 5:07pm UTC](https://forum.infinityfree.com/t/php8-version/79401/5 "2023-07-21T17:07:34Z")

</div>

You can also try the longer version of the code:

```auto
<?php echo phpinfo(); ?>

```

Also, make sure the file ends in “.php”, and contains no additional characters.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [July 28, 2023, 5:07pm UTC](https://forum.infinityfree.com/t/php8-version/79401/6 "2023-07-28T17:07:48Z")

</div>

Closed on July 28, 2023, 5:07pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
