Could we use to host Java and PHP runtime (2 application) on the same server using Docker or Kubernates.
what you're asking doesn't quite make sense.
Kubernetes is a production management and orchestration system for Docker containers.