How to use this developer tool
- Paste PHP source.
- Select an outline or symbol view.
- Choose which members to include.
- Parse the code.
- Copy or download the structure.
Extract namespaces, imports, classes, interfaces, traits, enums, functions, methods, properties, constants, and dependencies from PHP source in a lightweight structural outline.
It token-protects strings and comments, identifies declarations and their line positions, and exports a readable outline plus JSON-compatible symbol information.
This is a lightweight structural parser, not a complete PHP compiler AST. Dynamic declarations, anonymous classes, and unusual alternative syntax may be incomplete.
Input: a namespaced class with methods.
Output: namespace, dependencies, class name, methods, parameters, and line locations.
Paste the file and run the parser to list declarations with line numbers.
Use Basic Outline or Detailed Structure to produce a nested-looking declaration list.
The parser detects named methods and records visibility and line position when available.
Choose Symbol Table and download or copy the serialized symbol array.
This tool extracts common structural declarations, while a full AST parser models the entire grammar and expression tree.
| Module | Purpose |
|---|---|
| Namespace | Namespace declaration |
| Dependency | use/include/require |
| Type | Class, interface, trait, enum |
| Member | Function, method, property, constant |