3v4l.org

run code in 300+ PHP versions simultaneously
<?php function handleError($severity, $errstr, $errfile, $errline) { \error_clear_last(); if (\error_reporting() === 0) { return true; } var_dump('ERROR!'); } set_error_handler('handleError'); // actual script @\gzuncompress('blub'); $error = \error_get_last(); var_dump($error);
Output for 8.0.0 - 8.0.8
string(6) "ERROR!" NULL
Output for 7.3.0 - 7.3.29, 7.4.0 - 7.4.21
NULL

preferences:
117.09 ms | 460 KiB | 5 Q