Where is PHP on QNAP?

Well.. at least on my QNAP TS-210 it is in:

/mnt/ext/opt/apache/bin/

You can validate this by executing:

/mnt/ext/opt/apache/bin/php --version

Which should show version PHP installed on your QNAP box.