3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 'a:3:{i:0;O:9:"exception":1:{s:17:"'."\0".'Exception'."\0".'string";O:9:"exception":1:{s:17:"'."\0".'Exception'."\0".'string";r:2;}}i:1;R:3;i;2;R:4;}'; $x = unserialize($x); var_dump($x);
Output for 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught TypeError: Cannot assign Exception to property Exception::$string of type string in /in/rat3T:4 Stack trace: #0 /in/rat3T(4): unserialize('a:3:{i:0;O:9:"e...') #1 {main} thrown in /in/rat3T on line 4
Process exited with code 255.
Output for 5.4.8 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30
Notice: unserialize(): Error at offset 111 of 120 bytes in /in/rat3T on line 4 bool(false)
Output for 7.3.32 - 7.3.33
bool(false)

preferences:
224.5 ms | 401 KiB | 260 Q