3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.3.0 - 8.3.6
Warning: unserialize(): Error at offset 31 of 69 bytes in /in/BQuFB on line 3 bool(false)
Output for 8.2.2 - 8.2.18
Notice: unserialize(): Error at offset 31 of 69 bytes in /in/BQuFB on line 3 bool(false)
Output for 7.1.20 - 7.1.33, 7.2.8 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.1
Notice: unserialize(): Error at offset 14 of 69 bytes in /in/BQuFB on line 3 bool(false)
Output for 7.3.32 - 7.3.33
bool(false)
Output for 7.0.0 - 7.0.5, 7.0.20, 7.1.0 - 7.1.10, 7.2.0 - 7.2.6
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.4.2 - 5.4.45, 5.5.24 - 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.

preferences:
209.73 ms | 402 KiB | 259 Q