# Show PHP Version, Memory and Queries in the Admin Footer

> Replaces the WordPress version in the bottom right of admin screens with the PHP version, peak memory use and database query count of the current page.

- Type: PHP
- Runs: Admin only
- Category: [Developer](https://wpide.com/library/category/developer/)
- Tags: debugging, performance, admin, server
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/dev-php-memory-admin-footer/

## Code

```php
add_filter( 'update_footer', function ( $text ) {
    if ( ! current_user_can( 'manage_options' ) ) {
        return $text;
    }

    return sprintf(
        'PHP %1$s | Memory %2$s of %3$s | %4$d queries | %5$ss',
        esc_html( PHP_VERSION ),
        esc_html( size_format( memory_get_peak_usage( true ) ) ),
        esc_html( ini_get( 'memory_limit' ) ),
        (int) get_num_queries(),
        esc_html( number_format_i18n( timer_float(), 2 ) )
    );
}, 99 );
```

## Notes

Visible to administrators only.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Show PHP Version, Memory and Queries in the Admin Footer" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
