It seems that, since June 2022 (version 5.10), there is support for arm64 in the php sqlsrv drivers/extension. https://learn.microsoft.com/en-us/sql/connect/php/release-notes-php-sql-driver?view=sql-server-ver16 Let's give to it a try and check if now we can build it for our arm64 images.