3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DeprecationErrorHandler { public static function register() { $closure = function () { var_dump(self::getMode()); }; $closure(); } private static function getMode() { return 'hello'; } } DeprecationErrorHandler::register();

preferences:
61.23 ms | 402 KiB | 5 Q