PHP does the same. It’s compiled to a bytecode before execution. But I don’t think it’s cached anywhere like Python (but that may have changed in the decade since I’ve used it)
It's not like writing a basic cache is very hard...or just "borrow" one from an OS implementation.