<story><title>php.js - Run PHP code in JavaScript</title><url>http://phpjs.hertzen.com/</url></story><parent_chain><item><author>niklasvh</author><text>It has no real practical use, but it was an amazing learning experience for me. So many puzzles to solve</text></item></parent_chain><comment><author>nicholassmith</author><text>I can think of a couple of practical uses, the biggest one that comes to mind is helping places like CodeSchool do in browser PHP tutorials with the code actually executing. So definite practical uses :)</text></comment>
<story><title>php.js - Run PHP code in JavaScript</title><url>http://phpjs.hertzen.com/</url></story><parent_chain><item><author>niklasvh</author><text>It has no real practical use, but it was an amazing learning experience for me. So many puzzles to solve</text></item></parent_chain><comment><author>tikhonj</author><text>Assuming you have strong convictions about using php instead of JavaScript, it could be very useful.&lt;p&gt;I&apos;m actually using a similar tool (js_of_ocaml [1]) at work. It&apos;s great: we can take our product and package it for node or let people use it in the browser directly. And we can also have a native compiled version if performance is needed.&lt;p&gt;[1]: &lt;a href=&quot;http://ocsigen.org/js_of_ocaml/&quot; rel=&quot;nofollow&quot;&gt;http://ocsigen.org/js_of_ocaml/&lt;/a&gt;&lt;p&gt;So if you have an almost religiously php-oriented shop working on something that &lt;i&gt;isn&apos;t&lt;/i&gt; a web app, I could certainly see this being useful. That&apos;s exactly what the company I&apos;m at is, except with OCaml instead of php. Of  course, I can&apos;t actually imagine any company like that in php :P. (How many people use php for something that isn&apos;t server-side code?)&lt;p&gt;But the core idea is useful and awesome. And it&apos;s certainly very cool for a personal side-project!</text></comment>