3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(unserialize('C:3:"GMP":17:{s:4:"1";a:1:{i:0;O:12:"DateInterval":1:{s:1:"y";R:1;}}}'));
Output for 7.0.0 - 7.0.5, 7.0.20 - 7.2.0
Fatal error: Uncaught Exception: Could not unserialize number in /in/BQuFB:3 Stack trace: #0 /in/BQuFB(3): unserialize('C:3:"GMP":17:{s...') #1 {main} thrown in /in/BQuFB on line 3
Process exited with code 255.
Output for 5.3.18 - 5.5.35, 5.6.21, 7.0.6
Warning: Class __PHP_Incomplete_Class has no unserializer in /in/BQuFB on line 3 Notice: unserialize(): Error at offset 32 of 69 bytes in /in/BQuFB on line 3 bool(false)
Output for 5.6.7 - 5.6.20, 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'Could not unserialize number' in /in/BQuFB:3 Stack trace: #0 /in/BQuFB(3): unserialize('C:3:"GMP":17:{s...') #1 {main} thrown in /in/BQuFB on line 3
Process exited with code 255.