Is it compiled or just intepreted by the server on the fly?
both. it's "compiled" into Zend bytecodes which are executed by the Zend Engine. but this is done at run time.
The big answer is No it is an interpretted language.