phpdbg(1) Scripting Language phpdbg(1)

phpdbg - The interactive PHP debugger

phpdbg [options] [file] [args...]

phpdbg is a lightweight, powerful, easy to use debugging platform for PHP.

Look for php.ini file in the directory path or use the specified file
Define INI entry foo with value bar
No php.ini file will be used
Load Zend extension file
Do not print banner on startup
Enable oplog output
Disables use of color on the console
Override .phpgdbinit location (implies -I)
Ignore .phpdbginit (default init file)
Jump straight to run
Generate extended information for debugger/profiler
Enable step through eval()
Read code to execute from stdin with an optional delimiter
Override SAPI name
Output opcodes and quit
Print the help overview
Version number
Arguments passed to script. Use '--' args when first argument starts with '-' or script is read from stdin

Passing -rr will cause phpdbg to quit after execution, rather than returning to the console

The standard configuration file
The init file

The online manual can be found at

You can view the list of known bugs or report any new bug you found at

Written by Felipe Pena, Joe Watkins and Bob Weinand, formatted by Ondřej Surý for Debian project.

A List of active developers can be found at

And last but not least PHP was developed with the help of a huge amount of contributors all around the world.

This manpage describes phpdbg, for PHP version 8.3.3.

Copyright © The PHP Group

This source file is subject to version 3.01 of the PHP license, that is bundled with this package in the file LICENSE, and is available through the world-wide-web at the following url:

If you did not receive a copy of the PHP license and are unable to obtain it through the world-wide-web, please send a note to so we can mail you a copy immediately.

2024 The PHP Group