hd-wallet-addrs seems to wrap `bitwasp/bitcoin` which has advanced several versions since then (bitcoin-lib-php has been retired), including one that sped up elliptic curve operations a bit. You could always check out the extension for libsecp256k1
https://github.com/bit-wasp/secp256k1-php