The answer to "Can we do X from internals like we can from userspace?" is often: "Yes", but even when it's "No", that no is ALWAYS followed by: "..., not officially. 😏"
@pollita the follow up question: Should you do this?
@derickr To which the answer is "Runkit".
@pollita if the answer is RunKit you're asking the wrong question :-)
Open source. Open community. We are dedicated to building and enriching the PHP community.