3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 'O:9:"exception":2:{s:16:"'."\0".'Exception'."\0".'trace";s:4:"test";s:17:"'."\0".'Exception'."\0".'trace";R:2;}'; $x = unserialize($x); var_dump($x);
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught TypeError: Cannot assign string to property Exception::$trace of type array in /in/LVp1f:4 Stack trace: #0 /in/LVp1f(4): unserialize('O:9:"exception"...') #1 {main} thrown in /in/LVp1f on line 4
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.38, 7.0.0 - 7.0.31, 7.1.0 - 7.1.23, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
Notice: unserialize(): Error at offset 77 of 83 bytes in /in/LVp1f on line 4 bool(false)
Output for 7.3.32 - 7.3.33
bool(false)

preferences:
222.59 ms | 401 KiB | 332 Q