3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'O:18:"ReflectionFunction":1:{s:4:"name";s:2:"<>";}'; $obj = unserialize($str); var_dump($obj); echo $obj;
based on uDsh7
Output for 7.1.0
object(ReflectionFunction)#1 (1) { ["name"]=> string(2) "<>" } Fatal error: Method ReflectionFunction::__toString() must not throw an exception, caught Error: Internal error: Failed to retrieve the reflection object in /in/6XHGQ on line 0
Process exited with code 255.
Output for 5.3.3 - 5.6.28, 7.0.0 - 7.0.14
object(ReflectionFunction)#1 (1) { ["name"]=> string(2) "<>" } Fatal error: ReflectionFunction::__toString(): Internal error: Failed to retrieve the reflection object in /in/6XHGQ on line 8
Process exited with code 255.
Output for hhvm-3.12.0
Notice: Unable to unserialize: [O:18:"ReflectionFunction":1:{s:4:"name";s:2:"<>";}]. A null object pointer was used.. in /in/6XHGQ on line 5 bool(false)
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.3.2
object(ReflectionFunction)#1 (1) { ["name"]=> string(2) "<>" } Fatal error: Internal error: Failed to retrieve the reflection object in /in/6XHGQ on line 8
Process exited with code 255.
Output for 4.3.0 - 4.4.9
object(__PHP_Incomplete_Class)(2) { ["__PHP_Incomplete_Class_Name"]=> string(18) "reflectionfunction" ["name"]=> string(2) "<>" } Object