Refactored PHP interpreter spec to return a Promise for asynchronous operations to use