3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ReflectionFunction::export( create_function('$a', 'return $a;') );
Output for 5.2.2 - 5.6.30, 7.0.0 - 7.1.7
Function [ <user> function __lambda_func ] { @@ /in/Rgsm2(3) : runtime-created function 1 - 1 - Parameters [1] { Parameter #0 [ <required> $a ] } }
Output for hhvm-3.11.1 - 3.17.3
Function [ <user> function lambda_1 ] { @@ / 1 - 1 - Parameters [1] { Parameter #0 [ <required> $a ] } }
Output for hhvm-3.10.1
Function [ <user> function lambda_1 ] { @@ // 1 - 1 - Parameters [1] { Parameter #0 [ <required> $a ] } }
Output for 5.0.4 - 5.2.1
Function [ <user> <visibility error> function __lambda_func ] { @@ /in/Rgsm2(3) : runtime-created function 1 - 1 - Parameters [1] { Parameter #0 [ <required> $a ] } }
Output for 5.0.3
Function [ <user> <visibilty error> function __lambda_func ] { @@ /in/Rgsm2(3) : runtime-created function 1 - 1 - Parameters [1] { Parameter #0 [ <required> $a ] } }
Output for 5.0.0 - 5.0.2
Function [ <user> function __lambda_func ] { @@ /in/Rgsm2(3) : runtime-created function 1 - 1 - Parameters [1] { Parameter #0 [ $a ] } }
Output for 4.3.2 - 4.4.9
Fatal error: Undefined class name 'reflectionfunction' in /in/Rgsm2 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Undefined class name 'reflectionfunction' in /in/Rgsm2 on line 3