Check a PHP upgrade
check_php_upgradeCheck which of the given PHP symbols are linked from the official php.net migration pages between two minor versions. Returns each hit with kind incompatible or deprecated, the version, and the page URL. A symbol that is absent was not named on those pages, which is not proof the code is safe. Send from, to, and symbols, or code instead of symbols. The span can cover at most 8 minor versions. An empty breaks list is still a successful, charged check when the pages were read. The first 5 successful calls each UTC day from one network address are free and need no key. A not_found, bad_range, or fetch_failed is not charged and does not use a free call. After the 5, send X-API-Key. A key call costs 0.04 credit only on success. Key: https://firm.bestsmartgoods.com/signup
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from": "<from>",
"to": "<to>"
},
"name": "check_php_upgrade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target minor version, newer than from, for example 8.3. | |
| code | No | PHP source. Function calls are extracted when symbols is empty. | |
| from | Yes | Current minor version, for example 8.1. | |
| symbols | No | Function or class names to look for, at most 40. Omit it and pass code instead. |