3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ref = new ReflectionFunction('substr'); var_dump((string) $ref->getReturnType());
Output for 7.0.0 - 7.2.0
string(0) ""
Output for 5.3.21 - 5.6.28
Fatal error: Call to undefined method ReflectionFunction::getReturnType() in /in/ho2HN on line 4
Process exited with code 255.