Arrow functions have the following basic form:


fn(parameter_list) => expr
Traditional Closure:


$arrow = function ($x) use ($y) {
    return $x + $y;
};









New Short Closure:


$arrow = fn($x) => $x + $y;





https://wiki.php.net/rfc/arrow_functions_v2