Friday, July 13th, 2007
J4P5: JavaScript interpreter written in PHP 5
I haven’t seen many languages implemented in PHP. J4P5 “is a JavaScript interpreter written in PHP 5, that allows to run untrusted scripts in a sandbox on your server. It aims to implement most of Ecma-262 3d edition.”
J4P5 uses a modified version of the CFG parser of the MetaPHP project, and is licensed under the GPL
This project is new. The current version already exposes most of the features commonly associated with JavaScript, such as objects, prototypes, closures.
Notable caveats of this version (aka “the TODO list”):
- No support for unicode strings
- No support for regular expressions
- Semi-colons at the end of statements are not optional
- Most of the pre-defined objects/methods have not been tested
- The speed is definitely slower than PHP. It’s getting better though.












interesting
This could prove VERY interesting
server side javascript return
Cool!
old news… project is probably not maintained anymore. Haven’t seen active development on this for a long time.
So the point of this would let you write server side code with javascript???
PHP sucks a lot!
Despite the way cool factor, I think there would be much better tools available to get your coffee pot talking to your car garage.
The last update was two years ago, it’s pretty much dead, unless someone’s interested in reviving it.
The point of this is so spammers can run some JS on the server side to get around things when there is more JS hoops to go through before comment spamming…. :(
I have waited for it.. it is a very interested for me!!
http://www.phpsourcecode.blogspot.com