What is better and why?
if ($variable === null)
or
if (null === $variable)
- How PHP interpreter (PHP 7 vs PHP 8) parse conditions like this?
- Is there any differance with resource consumption and script execution time?
- How big is it? How much faster?