3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('ReflectionFunction','export'); $a = $a('phpinfo',true); var_dump($a);
based on s6va1
Output for 5.6.8 - 5.6.28, 7.0.0 - 7.1.0
string(54) "Function [ <internal:standard> function phpinfo ] { } "
Output for hhvm-3.12.0
string(120) "Function [ <internal> function phpinfo ] { - Parameters [1] { Parameter #0 [ <optional> HH\int $what = 0 ] } } "
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.35 - 5.5.35
string(45) "Function [ <internal> function phpinfo ] { } "
Output for 5.4.0 - 5.4.34
string(118) "Function [ <internal:standard> function phpinfo ] { - Parameters [1] { Parameter #0 [ <optional> $what ] } } "
Output for 5.0.0 - 5.3.29
Fatal error: Function name must be a string in /in/kCtfX on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Array to string conversion in /in/kCtfX on line 3 Fatal error: Call to undefined function: array() in /in/kCtfX on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Array to string conversion in /in/kCtfX on line 3 Fatal error: Call to undefined function: array() in /in/kCtfX on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Array to string conversion in /in/kCtfX on line 3 Fatal error: Call to undefined function: array() in /in/kCtfX on line 3