3v4l.org

run code in 300+ PHP versions simultaneously
<?php $handler = function() { echo 'error handler!'; throw new \ErrorException(); }; set_error_handler($handler); register_shutdown_function($handler); try { mcrypt_decrypt(MCRYPT_RIJNDAEL_256, 'asdf', 'asdf', MCRYPT_MODE_CBC); } catch (\Exception $e) { echo 'caught!'; } echo 'done';

preferences:
38.86 ms | 402 KiB | 5 Q