PHP interviews often begin by establishing which PHP you have written, because the language changed substantially between version 5 and version 8. Expect questions on loose versus strict comparison, prepared statements and injection defence, session handling behind a load balancer, interfaces, abstract classes and traits, Composer and PSR-4 autoloading, and the PHP 8 features that changed how modern code is written. Security and performance judgement feature throughout. The questions below cover all of it.





