<html>
<body>
declare(strict_types=1);
function sum(int $a, int $b) {
return $a + $b;
}
// Throws a fatal error because '5' is a string instead of a number
sum("5", 1);
</body>
<!-- /php/phptryit.asp?filename=tryphp_keyword_declare2 Thu, 06 Feb 2025 19:27:01 GMT -->
</html>