It depends on your uses how can you determine which one is better. Its always about what thing you wanna implement in a layman way!
When the last PHP evangelist chokes on another magic quote...... PHP has a strong foothold and will not go out of favor anytime soon. However I do see a future movement away from the ugliness that is PHP. PHP has many upsides, elegance is not one but, it does have some very unquestionable strengths.
PHP is great for small to medium projects but it's rarely used in the business world. .NET & Java are in demand & popular in the cause of it's ability to integrate with other applications & systems..even offline systems.