December Code

December Code / Try PHP

Try PHP

No account needed. Answer, see why, move on.

1 of 3 today

Modern PHPeasy

What does this PHP 8 code print?

$v = "1";
echo match ($v) {
    1 => "int",
    "1" => "string",
    default => "other",
};
Choose one option
choose an option

Nothing here is saved. Create a free account to keep your progress, take an assessment and get your readiness score.