When I execute this small piece of PHP code:
php -r \"echo(in_array(0, array(\'aaa\', \'bbb\')));\"
That echoes true...
That's because for PHP this code will return true
PHP
true
0 == 'aaa'
So without strict checking PHP will find your value in given array.