User query in PHP does not work
Try this:

$queryAllUsers_email = User::find()
    -&gt;email($new_email)
    -&gt;anyStatus()
    -&gt;all();


It's likely the email address you're searching for is for a user that isn't activated yet or suspended, etc.

Using anyStatus will search for the user regardless of their status.