Table of Contents

Language Feature Usage Survey

Lead: Bishop Bettini, Working Group Members: TBD

The engine development team (“internals”, internals@lists.php.net) continually evolves the PHP language, doing so with a healthy respect for preserving backwards compatibility (BC). When the need - or option - for compatibility breaks arise, internals asks the question: “is the risk of breaking this behavior for existing code worth the gain of doing so?”

It's a tough - and subjective - question to answer. Given the sheer volume of PHP installations, it's impossible to speculate how many sites would be affected by a BC break. So without robust information otherwise, the internals team rushes into the debate using a variety of appeals:

Those involved in the debate pick a statistic that resonates, then argue using that statistic as if it was a fact. They're not facts, unfortunately. They're cherry-picked statistics, and no way to make a crucial decision.

Idea

Let's ask users to send us information about how they're using PHP. Let's build an official static analyzer, which writes its results into a published interchange format, and offers to securely send analysis results to an official repository. Let's work with existing static analyzers and code editors to integrate this into their products. Let's work with continuous integration companies to get the tool as part of their pipeline offerings. Let's promote it on Reddit, Packagist, Github, StackOverflow, and any and everywhere else a developer visits.

Benefits

To PHP users:

To PHP internals:

To existing static analysis tools:

To code editors and continuous integration service vendors:

Requirements

The tool must be:

Progress

Idea definition only.

Status

Idea only.