It's certainly possible to do using php, although I'm not sure why it would be easier. If you use javascript, you can do all the processing client side - using php the main change is passing the parameters (such as skill level, xp, etc) to the server, calculating the result there, and returning it. Do you have any any prior experience with either javascript or php?