# Bug report <!-- Before reporting an issue please check that you are using the latest PHPStan version! --> <!-- Please describe your problem here. --> I get unexpected errors for `version_compare()`. ### Code snippet that reproduces the problem <!-- Try to reproduce the issue you are facing using https://phpstan.org/ and post the unique URL here --> https://phpstan.org/r/e09f4ab5-16fa-4be9-a613-1e604986e2bf ### Expected output <!-- Was the issue reported incorrectly? Or should PHPStan detect an issue with the code but doesn't? --> No errors expected. * Param 3 can be `null` * result can be `null` for php < 8 when the operator does not exist: https://3v4l.org/3TXPC
Bug report
I get unexpected errors for
version_compare().Code snippet that reproduces the problem
https://phpstan.org/r/e09f4ab5-16fa-4be9-a613-1e604986e2bf
Expected output
No errors expected.
nullnullfor php < 8 when the operator does not exist: https://3v4l.org/3TXPC