Why is === faster than == in PHP?

comparison-operators, equality-operator, identity-operator, operators, php

Solution

Because the equality operator `==` coerces, or converts, the data type temporarily to see if it’s equal to the other operand, whereas `===` (the identity operator) doesn’t need to do any converting whatsoever and thus less work is done, which makes it faster.

Problem

Why is `===` faster than `==` in PHP?

Original source

Related problems