<?php md5_file(string $filename, bool $binary = false): string|false
<?php public function hasSameHash($firstFile, $secondFile) { $hash = @md5_file($firstFile); return $hash && hash_equals($hash, (string) @md5_file($secondFile)); }
<?php { $hash = @md5_file($firstFile); return $hash && hash_equals($hash, (string) @md5_file($secondFile)); }
<?php return null; } return md5_file($path) ?: null; }