What does this program print?

from Error handling
PHP 8.3.33 beginner 2 min

What does this program print?

php
<?php
set_error_handler(
    static function (int $severity, string $message): bool {
        echo "handler: $message\n";
        return true;
    },
    E_USER_WARNING,
);
trigger_error('low stock', E_USER_WARNING);
echo "continued\n";
Open in playground
Report an error