<?phpintdiv(PHP_INT_MIN,-1);// output// Fatal error: Uncaught ArithmeticError: Division of PHP_INT_MIN by -1 is not an integer
DivisionByZeroError
<?php$a =3%0;// output// PHP Fatal error: Uncaught DivisionByZeroError: Modulo by zero$a =intdiv(3,0); // 3/0 is not fire exception.// output// PHP Fatal error: Uncaught DivisionByZeroError: Division by zero
AssertionError
<?phpini_set('assert.exception',1); //if without this, not exception but errorassert(2<1);// output// PHP Fatal error: Uncaught AssertionError: assert(2 < 1) in...
ArgumentCountError
<?phpdeclare(strict_types=1); //if without this, not exception but error$a = [1,2=>[3,4]];count($a,COUNT_RECURSIVE,'throw error');// output// PHP Fatal error: Uncaught ArgumentCountError: count() expects at most 2 parameters, 3 given
TypeError
<?phpa('throw error');functiona(int $b) {}// output// PHP Fatal error: Uncaught TypeError: Argument 1 passed to a() must be of the type int, string given