Skip to content

krakjoe/explain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

eecbf02 · Dec 8, 2013
Nov 8, 2013
Nov 11, 2013
Nov 6, 2013
Nov 6, 2013
Nov 6, 2013
Nov 6, 2013
Nov 9, 2013
Nov 6, 2013
Nov 6, 2013
Dec 8, 2013
Nov 14, 2013
Nov 9, 2013
Nov 8, 2013
Nov 8, 2013
Nov 9, 2013
Nov 9, 2013

Repository files navigation

explain all the things !!

/*
* explain some code
* @param code the file or code to explain
* @param type the type of $code EXPLAIN_FILE or EXPLAIN_STRING
* @param classes array of classes created by compilation of code
* @param functions array of functions created by compilation of code
* @return array
*/
function explain($code, $type = EXPLAIN_FILE, &$classes = array(), &$functions = array());
/*
* explain_opcode
* @param opcode the opcode
* @return string
*/
function explain_opcode($opcode);
/*
* explain_optype
* @param optype the optype
* @return string
*/
function explain_optype($optype);

Execution

php explain.php /path/to/file.php > output.html

Executing the above command will output the same format as in the preview displayed here ...

php explain.php /path/to/files > output.html

Executing the command above will recursively scan the path for PHP files ...

note: crank up the memory limit when explaining directories

Preview

screenshot

Build Status

See explain.php for helpingz ...