3v4l.org

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

preferences:
46.15 ms | 402 KiB | 5 Q