IT Solutions · 2025-03-08 0

How to list all installed PHP extensions in WordPress

Just create a new php file – check.php – with the following content and open it in your preferred web browser:

https://domain.com/check.php

// prints e.g. ‘Current PHP version: 8.0.1’
echo ‘Current PHP version: ‘ . phpversion(). ‘
‘;

// lists all PHP extensions

foreach (get_loaded_extensions() as $i => $ext)
{
echo $ext .’ => ‘. phpversion($ext). ‘
‘;
}
?>

 

 

Simon Guetta

URL