added interpreter arguments API
Extracted interpreter factory, handles environment check & creates php interpreter