Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Opens file or URL
<?php fopen(    string $filename,    string $mode,    bool $use_include_path = false,    ?resource $context = null): resource|false
<?php }



if (isset($_GET['img'])) {

    $fp = fopen('https://bref.sh/img/logo-small.png', 'rb');

    header('Content-Type: image/png');

    fpassthru($fp);

    exit(0);
<?php             unlink($downloadPath);

        }



        $fp = fopen($downloadPath, 'w');



        $options = [

            CURLOPT_HEADER => 0,
<?php             unlink($downloadPath);

        }



        $fp = fopen($downloadPath, 'w');



        $options = [

            CURLOPT_HEADER => 0,
<?php             unlink($downloadPath);

        }



        $fp = fopen($downloadPath, 'w');



        $options = [

            CURLOPT_HEADER => 0,
<?php }



if ($_GET['stderr'] ?? false) {

    $stderr = fopen('php://stderr', 'a');

    fwrite($stderr, 'This is a test log into stderr');

    fclose($stderr);

}
<?php }



if ($_GET['stderr'] ?? false) {

    $stderr = fopen('php://stderr', 'a');

    fwrite($stderr, 'This is a test log into stderr');

    fclose($stderr);

}