#php --re json Extension [ extension #19 json version 1.2.1 ] { Functions { Function [ function json_encode ] { } Function [ function json_decode ] { } } } 4) Using a different php.ini file
The following option can be useful when you need to test various ini configurations, or you need to check if all the modules in a particular ini are loading correctly.
#php –c PATH/to/PHP.INI example.php
5) Check to see for any syntax errors in a php file
Need to quickly check for php syntax errors if you do not have access to an IDE, then this option can be quite helpful. Combine it with some shell code and you can easily check for syntax errors for multiple files in a directory.
#php –l example.php
6) Display php built-in and loaded modules with debug
Combine it with php –c to debug any module loading errors for different php.ini files
#php –c PATH/to/PHP.INI -m
7) Syntax Highlighting
The following option will display syntax highlighted text using php’s internal mechanism.
#php –s example.php
You can then write the output to another file using a redirect.
#php –s example.php > syntax.html
8) Strip the source code of comments and whitespace
Can be useful if you need to reduce the file size.