3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $rf = new ReflectionFunction('strlen'); var_dump($rf->getDocComment()); var_dump($rf->getFileName()); var_dump($rf->getStartLine()); var_dump($rf->getEndLine());
based on EBlp4
Output for 5.0.0 - 7.2.0
bool(false) bool(false) bool(false) bool(false)
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/a9JEv on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/a9JEv on line 3