3v4l.org

run code in 300+ PHP versions simultaneously
<?php class errorTest { function handleError() { die('{}'); } function errorTest() { set_error_handler(array($this,'handleError')); echo 5/0; } } $d = new errorTest();

preferences:
47.88 ms | 402 KiB | 5 Q