What four lines does this program print?

from PHP 8.0 features
PHP 8.3.33 beginner 2 min

What four lines does this program print?

php
<?php
declare(strict_types=1);
function label(int|string $value): string
{
    return match ($value) {
        0 => 'integer-zero',
        '0' => 'string-zero',
        default => 'other',
    };
}
echo label(0), PHP_EOL;
echo label('0'), PHP_EOL;
echo label(1), PHP_EOL;
echo label('1'), PHP_EOL;
Open in playground
Report an error