JavaScript Editor Javascript validator     Web page editor 


Overview -- features and usage patterns

In brief

There are two types of interface to run a PHP_CompatInfo (alias PCI) script detection: CLI and web. All PCI features (since 1.7.0) are available on both interface.

It's up to you to choose what is the best usage for you.

Accuracy of detection

PCI may detect without error and with a great precision, any simple PHP scripts that have no switch conditions such as these ones : function_exists or version_compare.

// ...
if (function_exists('debug_backtrace')) {
    $backtrace = debug_backtrace();
} else {
    $backtrace = false;

if (version_compare(phpversion(), '5.0.0', '<')) {
    include_once 'PHP/Compat.php';
// ...

Don't be afraid, PCI can still be use, even if your PHP scripts have these conditions or any others, but you should help it, to adjust the parser accuracy with one or more options. See the parser options reference list for details and advanced detection section.

JavaScript Editor Javascript validator     Web page editor