Having worked with absolute beginners, this isn't nearly as easy as you think for someone just getting started. You're adding ssh keys, getting set up with git, installing the heroku client, running things from the command line, dealing with dependencies, dealing with heroku config file issues...
These are the things that get extremely frustrating very quickly to someone who doesn't have a technical background, and they cause people to give up.
Compared with: start a shared hosting account for $2/month, connect with a gui FTP client and the password you made during signup, drag and drop files to the server, go to http://www.yourserver.com/foo.php and see if it works.
If it's about learning the most basic fundamentals, PHP just works. It will be some time before these people start building things where security, scale, separation of concerns, version control etc start to count. Introducing too many things at once is frustrating, and the fun starts when you can use the things you're building, and share them with others. There's not much that's better than PHP in that regard.
Once everything is set up, it's two-ish commands to commit and push to somewhere like Heroku.
And no, I haven't taught beginners at all, I'll fess up to that. I've learned alongside them, though. PHP is a perfectly cromulent language/framework for this sort of thing, but something like Flask could be just as accessible.
Right click xampp icon and start services
Ubuntu: sudo apt-get install apache2 php5 mysql-server php5-mysql
sudo service apache2 start/restart
sudo service mysql start/restart
copy files to /var/www/
"getting FTP set up to get into your remote server"
sudo apt-get install ssh sudo service ssh start
Does that apply to you?
I think something like Flask might be a worthy successor. Heck it even includes a webserver, no need to fiddle with installing Apache to test stuff locally. And with services like Heroku the barrier to getting it online is almost as low as PHP.
> but I've taught web dev to over 500+ students in the past 7+ years
You can add things like templates (they're built in, and can be really simple) or just concatenate HTML the old-fashioned way. You can program very imperatively and work up to abstractions. It's very friendly.
I haven't seen it used as an introductory "language" but I feel like it would work well.