php-parse - Online in the Cloud

This is the command php-parse that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


php-parse - command line interface for PHP Parser

SYNOPSIS


php-parse [operations] file1.php [file2.php ...]
php-parse [operations] "<?php code"

DESCRIPTION


Turn PHP source code into an abstract syntax tree.

Operations is a list of the following options (--dump by default):

-d, --dump
Dump nodes using NodeDumper

-p, --pretty-print
Pretty print file using PrettyPrinter\Standard

--serialize-xml
Serialize nodes using Serializer\XML

--var-dump
var_dump() nodes (for exact structure)

-N, --resolve-names
Resolve names using NodeVisitor\NameResolver

-c, --with-column-info
Show column-numbers for errors (if available)

Example:
php-parse -d -p -N -d file.php

Dumps nodes, pretty prints them, then resolves names and dumps them again.

Use php-parse online using onworks.net services



Latest Linux & Windows online programs