3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function method () { return function () { var_dump(__FUNCTION__, __METHOD__); };} } $reflection = new ReflectionMethod(new Foo(), 'method'); var_dump($reflection->getClosureThis());

preferences:
32.11 ms | 402 KiB | 5 Q