`php --version` should show JIT status
Description
Opcache & JIT status is major information (together with the php version) for figuring out php issues.
A lot of projects use php --version cmd to dump the info in CI and the output looks like:
PHP 8.1.3 (cli) (built: Feb 18 2022 20:24:18) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.3, Copyright (c) Zend Technologies
with Zend OPcache v8.1.3, Copyright (c), by Zend Technologies
Composer version 2.2.7 2022-02-25 11:12:27
this is a feature request to add JIT status to this info like:
PHP 8.1.3 (cli) (built: Feb 18 2022 20:24:18) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.3, Copyright (c) Zend Technologies
- with Zend OPcache v8.1.3, Copyright (c), by Zend Technologies
+ with Zend OPcache v8.1.3 /w JIT (tracing), Copyright (c), by Zend Technologies
Composer version 2.2.7 2022-02-25 11:12:27
so the JIT status & its configuration is present.
Sounds nice. AFAIK one of the most important pieces of behaviour would be the opcache.jit setting, maybe it should be included here too.
OTOH for everything deeper, the ini output of all opcache / jit related stetting is probably required anyway…
A lot of projects use php --version cmd to dump the info in CI and the output looks like:
The presumption is extremely widespread that this format is stable-ish; There is tooling in the wild that would break for no good reason if we change the format.
There is already a way to obtain configuration settings, so the information is available ...
It looks like the potential harm outweighs the good here ...