- Output for 7.1.25 - 7.1.32, 7.2.0 - 7.2.22, 7.3.0 - 7.3.9
- Parse error: syntax error, unexpected '2' (T_LNUMBER), expecting variable (T_VARIABLE) in /in/fNnqp on line 3
Process exited with code 255.
<?php
declare(strict_types=1);
function multiply(2, 3): int {
return $a * $b;
}
$six = multiply(2,3);
echo gettype(six);