Are there any best practices for checking and displaying information about loaded modules in PHP?

When working with PHP, it can be helpful to check and display information about loaded modules for debugging or performance optimization purposes. One best practice for achieving this is to use the `get_loaded_extensions()` function in PHP, which returns an array of all the loaded extensions. You can then iterate through this array and display relevant information about each module.

$loadedModules = get_loaded_extensions();

foreach ($loadedModules as $module) {
    echo "Loaded module: $module <br>";
}