Add new php version

I am not sure how to add new php versions, i’ve added php 8.3 and 8.4 to server thru the package manager (apt) but they do not show up for cyberpanel. I’ve googled it, but all the instructions are for how to change php version a site in cyberpanel, not how to add newer versions of php.

does any one know how to do this?