3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ReflectionMethod::export('ReflectionFunction', 'hasReturnType');
based on eMd1v
Output for 7.0.0 - 7.2.0
Method [ <internal:Reflection, inherits ReflectionFunctionAbstract> public method hasReturnType ] { - Parameters [0] { } }
Output for 5.3.21 - 5.6.28
Fatal error: Uncaught exception 'ReflectionException' with message 'Method ReflectionFunction::hasReturnType() does not exist' in /in/s56ce:3 Stack trace: #0 [internal function]: ReflectionMethod->__construct('ReflectionFunct...', 'hasReturnType') #1 /in/s56ce(3): ReflectionMethod::export('ReflectionFunct...', 'hasReturnType') #2 {main} thrown in /in/s56ce on line 3
Process exited with code 255.