<?php
var_dump(error_reporting());
// Turn off all error reporting
error_reporting(0);
var_dump(error_reporting());
// Report simple running errors
error_reporting(E_ERROR | E_WARNING | E_PARSE);
var_dump(error_reporting());
// Reporting E_NOTICE can be good too (to report uninitialized
// variables or catch variable name misspellings ...)
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
var_dump(error_reporting());
// Report all errors except E_NOTICE
error_reporting(E_ALL & ~E_NOTICE);
var_dump(error_reporting());
// Report all PHP errors (see changelog)
error_reporting(E_ALL);
var_dump(error_reporting());
// Report all PHP errors
error_reporting(-1);
var_dump(error_reporting());
- Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- int(-1)
int(0)
int(7)
int(15)
int(32759)
int(32767)
int(-1)
- Output for 8.0.13
- int(32767)
int(0)
int(7)
int(15)
int(32759)
int(32767)
int(-1)
- Output for 7.3.32 - 7.3.33
- int(22519)
int(0)
int(7)
int(15)
int(32759)
int(32767)
int(-1)
- Output for 5.3.0 - 5.3.29
- int(-1)
int(0)
int(7)
int(15)
int(30711)
int(30719)
int(-1)
- Output for 5.2.0 - 5.2.17
- int(-1)
int(0)
int(7)
int(15)
int(6135)
int(6143)
int(-1)
- Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
- int(-1)
int(0)
int(7)
int(15)
int(2039)
int(2047)
int(-1)
preferences:
234.09 ms | 402 KiB | 314 Q