3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class a { function __construct() { echo 'hi'; } } $obj = new ReflectionFunction('phpinfo'); var_dump(serialize($obj));
based on ng1r4
Output for 5.0.0 - 7.1.0
string(55) "O:18:"ReflectionFunction":1:{s:4:"name";s:7:"phpinfo";}"
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/eXmWv on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/eXmWv on line 8