3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public static function ttt() { echo "test"; } } register_shutdown_function(function () { $lastError = error_get_last(); if (!empty($lastError) && $lastError['type'] == E_ERROR) { test::ttt(); } }); xx();

preferences:
40.77 ms | 402 KiB | 5 Q