i haven't looked for quite some time. There was a german guy had a perl ide and interpreter.
Found it (google is your friend) There is version
here
He hasn't updated by the look of the site since 2002 (which is a shame as he was a porting machine) and I haven't tried it on a PPC after PPC2K but it may be worth a look. I didn't use it for anything worthwhile but did do some extraction from pbx log files.
Php - I haven't seen anything and as it's not really standalone I would doubt it.