There seems to be a PHP Singularity. (Yeah.)
I was recently thinking about this: (1) PHP is a horrible, horrible, horrible language, but (2) many people use it anyway. It means it does some things right (at least for the given set of people), but it also does so many things wrong. Switching to Perl, Ruby or Python is apparently not seen as a good choice by the PHP users, because those languages miss... something. (Perhaps a simplicity for a total newbie, e.g. not having to think about libraries, etc.)
In my opinion, the good solution would be to make a new language "PHP done correctly". (Of course it would have different name, for copyright reasons.) It should have all the advantages of PHP, without the stupid design choices. If done correctly, it has a potential to gain millions of users (current PHP users). Some thoughts about the language:
visually similar to PHP. We are trying to steal their user-base, right? So I would keep the "<? ... ?>" syntax for inserting code into HTML page, and a dollar prefix for "$variableNames". The goal is to make a PHP user look at the "Hello World" examples or the new language and think "Oh, it's just like PHP", because learning a new programming language is an inconvenience. (By the way, using dollars for variables is a good way to avoid naming conflicts with keywords.)
there should be a web tool where you can copy-paste your code and it will highlight all errors. Syntax errors, wrong function names, etc.
the first version should support the most important things PHP supports now. For me it would be displaying a text and connecting to a database.
it should support namespaces and classes, done correctly. These may be different from PHP, because noobs (most of the PHP userbase) don't understand them anyway, so it is a good opportunity to improve the language design. At this point we don't have to be backwards compatible.
it needs to be distributed with a lot of tutorials. Many beginners want to google their solutions. So the product website should include an example discussion forum, an example database editor, etc. All these examples as simple as possible.
variable declaration optional (sorry, most people want it like this), but include a command that changes it (like "use strict" in Perl).
It should have all the advantages of PHP, without the stupid design choices.
Outside view: I would suspect that many of the advantages of PHP stem from design choices that seem stupid to you.
If it's worth saying, but not worth its own post, even in Discussion, it goes here.