V
V
Valeria_Rayshite2016-04-08 06:40:56
PHP
Valeria_Rayshite, 2016-04-08 06:40:56

How can I find out what version of php is being used?

I'm using XAMPP and I need to know what version of php is being used. Tell me, please, how can this be done?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
DireX, 2016-04-08
@xDireX

php -v in console
Or create a temporary file and write in it:

<?php
phpinfo();

K
Kostya Nemchenko, 2016-04-08
@Koka-UA

echo phpversion();
Well, if you need to change, then the path to the web server config.

V
val_m7, 2021-04-20
@val_m7

see the php version in xampp - localhost/dashboard/phpinfo.php
or in Xampp itself in the Apache line - click the Admin button, go to the main page, where in the menu click the link - PHPinfo

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question