3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = unserialize('C:15:"ReflectionClass":32:{a:1:{s:4:"name";s:8:"Cozzator";}}'); var_dump($a->hasMethod('asdf'));
Output for 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
Fatal error: Uncaught Exception: Unserialization of 'ReflectionClass' is not allowed in /in/1EStm:3 Stack trace: #0 /in/1EStm(3): unserialize('C:15:"Reflectio...') #1 {main} thrown in /in/1EStm on line 3
Process exited with code 255.
Output for 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33
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.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.21, 7.0.0 - 7.0.20
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 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.1.6, 5.2.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.3.11, 4.4.0 - 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

preferences:
190.36 ms | 401 KiB | 327 Q