4

Посмотреть права на файл

<?php
echo substr(sprintf('%o', fileperms('/etc/passwd')), -4);
0644
-----------