3v4l.org

run code in 300+ PHP versions simultaneously
<?php $error_handler = function() { throw new Exception(); }; set_error_handler($error_handler, E_NOTICE | E_WARNING); if (false === preg_match('```', null)) { $error_handler(); } restore_error_handler();

preferences:
39.67 ms | 402 KiB | 5 Q