3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new ReflectionMethod('Closure', 'bind'); $reflection = new ReflectionFunction($x->getClosure()); var_dump(preg_match('/^\\s*?Method\\s*\\[\\s*static/i', $reflection->__toString())); var_dump($reflection->__toString());

preferences:
36.54 ms | 402 KiB | 5 Q