Which three lines are printed?

from Enums
PHP 8.3.33 intermediate 2 min

Which three lines are printed?

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;
Open in playground
Report an error