3v4l.org

run code in 300+ PHP versions simultaneously
<?php class errorTest { function handleError() { die('{}'); } function errorTest() { set_error_handler(array($this,'handleError')); } }

preferences:
33.57 ms | 402 KiB | 5 Q