3v4l.org

run code in 500+ PHP versions simultaneously
<?php error_reporting(E_ALL); function handleError() { var_dump('handle_error', error_reporting()); } set_error_handler(\Closure::fromCallable('handleError')); var_dump(error_reporting()); @$a++; @$b++;
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.34, 8.3.0 - 8.3.32
int(32767) string(12) "handle_error" int(4437) string(12) "handle_error" int(4437)
Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
int(32767) string(12) "handle_error" int(0) string(12) "handle_error" int(0)
Output for 8.4.1 - 8.4.26, 8.5.0 - 8.5.11
int(30719) string(12) "handle_error" int(4437) string(12) "handle_error" int(4437)

preferences:
37.72 ms | 1142 KiB | 12 Q