In what order are the three words printed?

from Exceptions
PHP 8.3.33 beginner 2 min

In what order are the three words printed?

php
<?php
function result(): string
{
    try {
        echo "try\n";
        return 'done';
    } finally {
        echo "finally\n";
    }
}
echo result(), "\n";
Open in playground
Report an error