php is better
My favorite choice for e-commerce in PHP is OpenCart. Because it really is easy enough that you can take it apart quickly and designed what you want from the basis it already has, and it still comes with a lot of the most popular functions of an e-commerce.
I think, in general, PHP is more suited for web application development, it is a language created for with that purpose in mind, so it is easier to write PHP code for HTTP based applications. PHP written mostly in C so it is pretty easy to extend it and build modules for your needs.