3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $r = new ReflectionClass(Closure::class); var_dump((string) $r->getMethod('__invoke'));
based on e2TJO
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0beta1
string(49) "Method [ <internal> public method __invoke ] { } "
Output for hhvm-3.18.4 - 3.21.0
Fatal error: Uncaught exception 'ReflectionException' with message 'Method Closure::__invoke() does not exist' in /in/REAPl:4 Stack trace: #0 (): ReflectionMethod->__construct() #1 /in/REAPl(4): ReflectionClass->getMethod() #2 {main}
Process exited with code 255.