3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $c = new ReflectionFunction('phpinfo'); $p = 'phpinfo'; $a = new $c($p); echo $a;
based on t7VEA
Output for 5.6.7 - 7.1.0
Function [ <internal:standard> function phpinfo ] { }
Output for 5.4.34 - 5.5.35
Function [ <internal> function phpinfo ] { }
Output for 5.2.3 - 5.4.32
Function [ <internal:standard> function phpinfo ] { - Parameters [1] { Parameter #0 [ <optional> $what ] } }
Output for 5.2.2
Function [ <internal> function phpinfo ] { - Parameters [1] { Parameter #0 [ <optional> $what ] } }
Output for 5.2.0 - 5.2.1
Function [ <internal> public function phpinfo ] { - Parameters [1] { Parameter #0 [ <optional> $what ] } }
Output for 5.0.0 - 5.1.6
Function [ <internal> public function phpinfo ] { }
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/FiVGV 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/FiVGV on line 3