I guess we can consider the overlapping between PHP and JavaScript worlds complete. Just within the last couple of days I separately and independently came across two different projects:
- jsphp, which is a pseudo-implementation of the ECMA 262 standard (JavaScript 8.5.1) for PHP 5.3+
- php.js, which is a resource that offers community-built JavaScript alternatives to PHP functions
So now you can use JavaScript-like stuff in PHP, and PHP-like stuff in JavaScript. Boom!