If you do PHP for the backend, you'll end up using JS for the frontend anyway (jQuery, React/Angular/Vue, etc).
So it'd probably be easier to dive deep into Javascript since the knowledge is applicable on both the server and client side, rather than learning two separate languages and rulesets.