If you run a server or even "virtual" server and would like to check your PHP version, make a new php file (example: cekphp.php) and paste these codes into it.
Run the new php file through localhost (example: http://localhost/cekphp.php) and you will see a list of php configurations.
Thank you.