None of the posix_* functions are available under Windows, since Windows is not POSIX compliant. But there seems to be / was an optional software package available, see here: https://en.wikipedia.org/wiki/Microsoft_POSIX_subsystem
(PHP 4, PHP 5, PHP 7, PHP 8)
posix_getuid — 現在のプロセスの実際のユーザー ID を返す
現在のプロセスの実際のユーザー ID を返します。
この関数にはパラメータはありません。
ID を表す整数値を返します。
例1 posix_getuid() の使用例
<?php
echo posix_getuid(); //10000
?>
None of the posix_* functions are available under Windows, since Windows is not POSIX compliant. But there seems to be / was an optional software package available, see here: https://en.wikipedia.org/wiki/Microsoft_POSIX_subsystem