<?php
intdiv(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
<?php
ini_set('assert.exception', 1); //if without this, not exception but error
assert(2 < 1);
// output
// PHP Fatal error: Uncaught AssertionError: assert(2 < 1) in...
ArgumentCountError
<?php
declare(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
<?php
a('throw error');
function a(int $b) {}
// output
// PHP Fatal error: Uncaught TypeError: Argument 1 passed to a() must be of the type int, string given