執行 ❯
獲取您
自己的 PHP
伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <body> <?php 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> </html>
PHP 致命錯誤:strict_types 宣告必須是指令碼中的第一個語句,位於 /home/h0iQ5o/prog.php 的第 6 行