<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>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_keyword_declare2 by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:22:56 GMT -->
</html>