php-ast by nikic exposes the abstract syntax tree generated by PHP 7 and 8 — nikic currently only provides pre-built Windows DLLs up to PHP v8.1, and building it yourself can be a minor hassle.
So here’s a collection of pre-built DLLs for PHP 8.0 - 8.2 (ts/nts)
https://github.com/theresnotime/php-ast-windows-build/releases/tag/1.0.4