3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //foreach ($fnc_array as $fnc_name) { $ref_func = new ReflectionFunction('preg_replace_callback'); foreach($ref_func->getParameters() as $parm) { var_dump($parm->isCallable()); if($parm->isCallable()) { echo "$fnc_name (" . $ref_func->getNumberOfParameters() .")\n"; break; } }
Output for 5.4.0 - 7.2.0
bool(false) bool(false) bool(false) bool(false) bool(false)
Output for 5.1.3 - 5.3.29
Fatal error: Call to undefined method ReflectionParameter::isCallable() in /in/8bk61 on line 7
Process exited with code 255.
Output for 5.0.0 - 5.1.2
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/8bk61 on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/8bk61 on line 4