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 6XHGQ
Output for 7.1.0
object(ReflectionFunction)#1 (1) { ["name"]=> string(2) "<>" } string(55) "O:18:"ReflectionFunction":1:{s:4:"name";s:7:"phpinfo";}" 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/KZajZ on line 0
Process exited with code 255.
Output for 5.6.8 - 7.0.14
object(ReflectionFunction)#1 (1) { ["name"]=> string(2) "<>" } string(55) "O:18:"ReflectionFunction":1:{s:4:"name";s:7:"phpinfo";}" Function [ <internal:standard> function phpinfo ] { } Fatal error: ReflectionFunction::__toString(): Internal error: Failed to retrieve the reflection object in /in/KZajZ on line 14
Process exited with code 255.
Output for 5.4.35 - 5.5.35
object(ReflectionFunction)#1 (1) { ["name"]=> string(2) "<>" } string(55) "O:18:"ReflectionFunction":1:{s:4:"name";s:7:"phpinfo";}" Function [ <internal> function phpinfo ] { } Fatal error: ReflectionFunction::__toString(): Internal error: Failed to retrieve the reflection object in /in/KZajZ on line 14
Process exited with code 255.
Output for 5.3.3 - 5.4.34
object(ReflectionFunction)#1 (1) { ["name"]=> string(2) "<>" } string(55) "O:18:"ReflectionFunction":1:{s:4:"name";s:7:"phpinfo";}" 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/KZajZ on line 14
Process exited with code 255.
Output for 5.2.3 - 5.3.2
object(ReflectionFunction)#1 (1) { ["name"]=> string(2) "<>" } string(55) "O:18:"ReflectionFunction":1:{s:4:"name";s:7:"phpinfo";}" Function [ <internal:standard> function phpinfo ] { - Parameters [1] { Parameter #0 [ <optional> $what ] } } Fatal error: Internal error: Failed to retrieve the reflection object in /in/KZajZ on line 14
Process exited with code 255.
Output for 5.2.2
object(ReflectionFunction)#1 (1) { ["name"]=> string(2) "<>" } string(55) "O:18:"ReflectionFunction":1:{s:4:"name";s:7:"phpinfo";}" Function [ <internal> function phpinfo ] { - Parameters [1] { Parameter #0 [ <optional> $what ] } } Fatal error: Internal error: Failed to retrieve the reflection object in /in/KZajZ on line 14
Process exited with code 255.
Output for 5.2.0 - 5.2.1
object(ReflectionFunction)#1 (1) { ["name"]=> string(2) "<>" } string(55) "O:18:"ReflectionFunction":1:{s:4:"name";s:7:"phpinfo";}" Function [ <internal> public function phpinfo ] { - Parameters [1] { Parameter #0 [ <optional> $what ] } } Fatal error: Internal error: Failed to retrieve the reflection object in /in/KZajZ on line 14
Process exited with code 255.
Output for 5.0.0 - 5.1.6
object(ReflectionFunction)#1 (1) { ["name"]=> string(2) "<>" } string(55) "O:18:"ReflectionFunction":1:{s:4:"name";s:7:"phpinfo";}" Function [ <internal> public function phpinfo ] { } Fatal error: Internal error: Failed to retrieve the reflection object in /in/KZajZ on line 14
Process exited with code 255.
Output for 4.3.2 - 4.4.9
object(__PHP_Incomplete_Class)(2) { ["__PHP_Incomplete_Class_Name"]=> string(18) "reflectionfunction" ["name"]=> string(2) "<>" } Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/KZajZ on line 10
Process exited with code 255.
Output for 4.3.0 - 4.3.1
object(__PHP_Incomplete_Class)(2) { ["__PHP_Incomplete_Class_Name"]=> string(18) "reflectionfunction" ["name"]=> string(2) "<>" } Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/KZajZ on line 10