Hi
Yes, it is possible to use firebird 4.0 (and most probably 5.0) with php 8.2 and probably 8.3, but - as you have noted yourself - with certain limitations. I have a couple of small projects that use the old interbase (ibase*) driver with php up to 8.2 and they generally work.
Once you have the needed binary, you should put it in the php extensions directory with the proper name, and add the corresponding line in you php.ini.
Support for BOOLEAN fields has been added and works, new datatypes from 4.0 like decfloat, int128 and timestamps with time zones are still not supported. I guess they can be added, but I don't know how high is that on Martin's priority list. That's why if you are using 4.0 or above, you definitely need to add DataTypeCompatibility = 3.0 to your firebird.conf (or databases.conf). Even if you are not using them directly, the server may return new datatypes in some situations.
Long identifiers are not supported by the PHP drivers and it is not likely they will be any time soon. The problem is that this feature is available only via the new OO client interface and the drivers need to be completely rewritten to use it instead of the old ISC API. I don't know of any plans to do that, neither for php-interbase nor for pdo_firebird.
I don't know what other new features you are planning to use. Generally, everything that is server-only, like the replication, should be no problem.
My advice is that you re-consider the database part of your project. Using Firebird makes sense if you are going to make full use of its strengths - like if you plan to put most of the business logic in the database. From what I've seen in most php frameworks and ORM implementations, the database is used only as data store, and they are mostly centered around MySQL/MariaDB and Postgres (and SQLite - although it is not a server, it might be a good option too). Support for Firebird is either non-existent or third-party.
Now that I looked more carefully, I see that your question was actually about the PDO driver. It is still supported in PHP, so it should be available from your package manager one way or another. I don't have much experience with it yet, as far as I know Boolean support was added there too, but not other new datatypes, so the recommendation for DataCompatibility probably stands.
Hope that helps a little.
Best regards
Emil