PHP isn't really used for web games due to needing to reload a page or send a request to add/modify/delete information. JavaScript can be a pretty good source for creating a game due to flexibility and user function designs, plus there are a fair amount of JavaScript game engines to help you. I've personally worked with Babylon.js before and it works pretty well, but without a good computer it can get laggy pretty easily. I hope this helps! Good luck with your project.