<?php $input = true; $val = match ($input) { true => [$foo = 1, $bar = 2, $foo + $bar][2], false => "nah", }; var_dump($val);
You have javascript disabled. You will not be able to edit any code.