3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $c = 'ReflectionFunction'; $p = 'phpinfo'; $a = new $c($p); echo $a;
based on F34Qc
Output for 5.6.4 - 7.1.0
Function [ <internal:standard> function phpinfo ] { }
Output for 5.2.2 - 5.6.3
Function [ <internal> function phpinfo ] { }
Output for 5.0.0 - 5.2.1
Function [ <internal> public function phpinfo ] { }
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/t7VEA on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/t7VEA on line 5