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)    
Last Updated Ratings Unique User Downloads Download Rankings
2020-11-18 (3 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 107 All time: 9,361 This week: 314Up
Version License PHP version Categories
dump-php 1.0.0GNU General Publi...5PHP 5, Debug
Description Author

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
Innovation award
Innovation award
Nominee: 5x

Details

Dump PHP

Display global names and backtrace.

Dump the global namespace.

Usage

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

Examples

    require('Dump.class.php');

    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 README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:107
This week:0
All time:9,361
This week:314Up

For more information send a message to info at phpclasses dot org.