3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'O:18:"ReflectionFunction":1:{s:4:"name";s:2:"<>";}'; $obj1 = unserialize($str); //var_dump($obj1); //echo $obj; $obj2 = new ReflectionFunction('phpinfo');; //var_dump(serialize($obj2)); echo $obj2, "\n"; echo $obj1;
based on KZajZ
Output for 7.1.0
Function [ <internal:standard> function phpinfo ] { } Fatal error: Method ReflectionFunction::__toString() must not throw an exception, caught Error: Internal error: Failed to retrieve the reflection object in /in/LJG80 on line 0
Process exited with code 255.
Output for 5.6.7 - 5.6.28, 7.0.0 - 7.0.14
Function [ <internal:standard> function phpinfo ] { } Fatal error: ReflectionFunction::__toString(): Internal error: Failed to retrieve the reflection object in /in/LJG80 on line 14
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Notice: Unable to unserialize: [O:18:"ReflectionFunction":1:{s:4:"name";s:2:"<>";}]. A null object pointer was used.. in /in/LJG80 on line 5 Function [ <internal> function phpinfo ] { - Parameters [1] { Parameter #0 [ <optional> HH\int $what = 0 ] } }
Output for 5.4.35 - 5.5.35
Function [ <internal> function phpinfo ] { } Fatal error: ReflectionFunction::__toString(): Internal error: Failed to retrieve the reflection object in /in/LJG80 on line 14
Process exited with code 255.
Output for 5.3.3 - 5.4.34
Function [ <internal:standard> function phpinfo ] { - Parameters [1] { Parameter #0 [ <optional> $what ] } } Fatal error: ReflectionFunction::__toString(): Internal error: Failed to retrieve the reflection object in /in/LJG80 on line 14
Process exited with code 255.
Output for 5.2.3 - 5.3.2
Function [ <internal:standard> function phpinfo ] { - Parameters [1] { Parameter #0 [ <optional> $what ] } } Fatal error: Internal error: Failed to retrieve the reflection object in /in/LJG80 on line 14
Process exited with code 255.
Output for 5.2.2
Function [ <internal> function phpinfo ] { - Parameters [1] { Parameter #0 [ <optional> $what ] } } Fatal error: Internal error: Failed to retrieve the reflection object in /in/LJG80 on line 14
Process exited with code 255.
Output for 5.2.0 - 5.2.1
Function [ <internal> public function phpinfo ] { - Parameters [1] { Parameter #0 [ <optional> $what ] } } Fatal error: Internal error: Failed to retrieve the reflection object in /in/LJG80 on line 14
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Function [ <internal> public function phpinfo ] { } Fatal error: Internal error: Failed to retrieve the reflection object in /in/LJG80 on line 14
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/LJG80 on line 10
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/LJG80 on line 10