3v4l.org

run code in 300+ PHP versions simultaneously
<?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.'}}'));
Output for 7.0.0 - 7.0.5, 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.32, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
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.4.2 - 5.4.45, 5.5.24 - 5.5.35, 5.6.21, 7.0.6, 7.3.32 - 7.3.33, 7.4.33, 8.0.13
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.

preferences:
173.46 ms | 401 KiB | 227 Q