3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = unserialize('C:15:"ReflectionClass":32:{a:1:{s:4:"name";s:8:"Cozzator";}}'); var_dump($a->hasMethod('asdf'));
based on SjfQR
Output for 7.1.0
Warning: Class ReflectionClass has no unserializer in /in/1EStm on line 3 Fatal error: Uncaught Error: Internal error: Failed to retrieve the reflection object in /in/1EStm:4 Stack trace: #0 /in/1EStm(4): ReflectionClass->hasMethod('asdf') #1 {main} thrown in /in/1EStm on line 4
Process exited with code 255.
Output for 5.3.3 - 5.6.21, 7.0.0 - 7.0.14
Warning: Class ReflectionClass has no unserializer in /in/1EStm on line 3 Fatal error: ReflectionClass::hasMethod(): Internal error: Failed to retrieve the reflection object in /in/1EStm on line 4
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Warning: Class ReflectionClass has no unserializer in /in/1EStm on line 3
Process exited with code 139.
Output for 5.3.0 - 5.3.2
Warning: Class ReflectionClass has no unserializer in /in/1EStm on line 3 Fatal error: Internal error: Failed to retrieve the reflection object in /in/1EStm on line 4
Process exited with code 255.
Output for 5.1.0 - 5.2.17
Warning: Class ReflectionClass has no unserializer in /in/1EStm on line 3 Notice: unserialize(): Error at offset 21 of 60 bytes in /in/1EStm on line 3 Fatal error: Call to a member function hasMethod() on a non-object in /in/1EStm on line 4
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Notice: unserialize(): Error at offset 0 of 60 bytes in /in/1EStm on line 3 Fatal error: Call to a member function hasMethod() on a non-object in /in/1EStm on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Notice: unserialize(): Error at offset 0 of 60 bytes in /in/1EStm on line 3 Fatal error: Call to a member function on a non-object in /in/1EStm on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 0 of 60 bytes in /in/1EStm on line 3 Fatal error: Call to a member function on a non-object in /in/1EStm on line 4