phpversion

PHP 4, PHP 5, PHP 7, PHP 8
phpversion - Gets the current PHP version
Manual
Code Examples

Example #1 phpversion example

PHP Version:

Example #2 <span class='function-constant'>PHP_VERSION_ID</span> example and usage

PHP Version: