程序会输出哪三行?

来自 枚举
PHP 8.3.33 进阶 2分钟

程序会输出哪三行?

php
<?php
enum Status: string
{
    case Draft = 'draft';
    case Published = 'published';
}
echo Status::from('draft')->name, PHP_EOL;
var_export(Status::tryFrom('Draft'));
echo PHP_EOL, json_encode(Status::Published), PHP_EOL;
在试验场中打开
报告错误