<?php fwrite(resource $stream, string $data, ?int $length = null): int|false
<?php if ($_GET['stderr'] ?? false) { $stderr = fopen('php://stderr', 'a'); fwrite($stderr, 'This is a test log into stderr'); fclose($stderr); }