PHP Classes

PHP Dump All Variables and Functions: Display global names and stack backtrace

Recommend this page to a friend!
  Info   View files Documentation   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 112 All time: 9,575 This week: 94Up
Version License PHP version Categories
dump-php 1.0.0GNU General Publi...5PHP 5, Debug


This package can display global names and stack backtrace.

It can retrieve several details of usage of the current PHP script and displays them formatted in a readable way. Currently it can display:

- Information about the loaded classes and their functions
- Memory used by the current PHP script
- Assigned constants
- Defined functions
- Global variables
- Included scripts
- Backtrace of the current function calls and parameter values

Innovation Award
PHP Programming Innovation award nominee
November 2020
Number 9
Sometimes PHP developers need to debug difficult cases in their code that are affected by the way that PHP sets global variables.

This package makes it easier to inspect and display all types of global variables that are set when a PHP script is executed.

This way, this package may help debugging a case in less time than it would take using more traditional debug methods.

Manuel Lemos
Picture of Martin Latter
  Performance   Level  
Name: Martin Latter <contact>
Classes: 8 packages by
Country: United Kingdom
Age: ???
All time rank: 130660 in United Kingdom
Week rank: 358 Up9 in United Kingdom Up
Innovation award
Innovation award
Nominee: 5x


Dump PHP

Display global names and backtrace.

Dump the global namespace.


    new Dump( [ 'all' | string method_name | array (method_names) ] [, boolean output_type] );



    new Dump();

    new Dump('displayFunctions', TRUE);

    new Dump( ['displayMemory', 'backtrace'] );

  Files folder image Files  
File Role Description
Plain text file Dump.class.php Class Class source
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,575
This week:94Up