3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $inner = 's:4:"1";a:1:{i:0;O:12:"DateInterval":1:{s:1:"y";R:1;}}'; var_dump(unserialize('a:1:{i:0;C:3:"GMP":'.strlen($inner).':{'.$inner.'}}'));
based on BQuFB
Output for 7.0.0 - 7.0.5, 7.0.20 - 7.2.0
Fatal error: Uncaught Exception: Could not unserialize number in /in/SBS50:4 Stack trace: #0 /in/SBS50(4): unserialize('a:1:{i:0;C:3:"G...') #1 {main} thrown in /in/SBS50 on line 4
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/SBS50 on line 4 array(1) { [0]=> object(__PHP_Incomplete_Class)#1 (1) { ["__PHP_Incomplete_Class_Name"]=> string(3) "GMP" } }
Output for 5.6.7 - 5.6.20, 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'Could not unserialize number' in /in/SBS50:4 Stack trace: #0 /in/SBS50(4): unserialize('a:1:{i:0;C:3:"G...') #1 {main} thrown in /in/SBS50 on line 4
Process exited with code 255.