php-js is an experimental PHP extension which embeds the Mozilla SpiderMonkey JavaScript engine into PHP.