What Will Be PHP for Mobile Devices?

PHP (and later Ruby on Rails) made it really easy to build simple applications for the web. What's going to fill that role for mobile devices? One intriguing possibility is Phone Gap: it's open source, it's based on Javascript (which everyone has to learn these days anyway, whether they like it or not), and it (mostly) works right now.