3v4l.org

run code in 300+ PHP versions simultaneously
<?php $e = unserialize('O:9:"Exception":7:{s:17:"'."\0".'Exception'."\0".'string";s:1:"a";s:7:"'."\0".'*'."\0".'code";i:0;s:7:"'."\0".'*'."\0".'file";R:1;s:7:"'."\0".'*'."\0".'line";i:1337;s:16:"'."\0".'Exception'."\0".'trace";a:0:{}s:19:"'."\0".'Exception'."\0".'previous";i:10;s:10:"'."\0".'*'."\0".'message";N;}'); //$e = unserialize('O:9:"Exception":7:{s:17:"'."\0".'Exception'."\0".'string";s:1:"a";s:7:"'."\0".'*'."\0".'code";i:0;s:7:"'."\0".'*'."\0".'file";i:1;s:7:"'."\0".'*'."\0".'line";i:1337;s:16:"'."\0".'Exception'."\0".'trace";a:0:{}s:19:"'."\0".'Exception'."\0".'previous";i:10;s:10:"'."\0".'*'."\0".'message";N;}'); var_dump($e."");
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught TypeError: Cannot assign Exception to property Exception::$file of type string in /in/lKANW:3 Stack trace: #0 /in/lKANW(3): unserialize('O:9:"Exception"...') #1 {main} thrown in /in/lKANW on line 3
Process exited with code 255.
Output for 8.0.0 - 8.0.30
Fatal error: Uncaught TypeError: Cannot assign int to property Exception::$previous of type ?Throwable in /in/lKANW:3 Stack trace: #0 /in/lKANW(3): unserialize('O:9:"Exception"...') #1 {main} thrown in /in/lKANW on line 3
Process exited with code 255.
Output for 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.33
Notice: Undefined property: Exception::$file in /in/lKANW on line 7 Notice: Undefined property: Exception::$previous in /in/lKANW on line 7 Notice: Undefined property: Exception::$previous in /in/lKANW on line 7 string(41) "Exception in :1337 Stack trace: #0 {main}"
Output for 7.3.32 - 7.3.33
string(41) "Exception in :1337 Stack trace: #0 {main}"
Output for 7.0.0 - 7.0.6
Notice: Undefined property: Exception::$message in /in/lKANW on line 7 Notice: Undefined property: Exception::$file in /in/lKANW on line 7 Notice: Undefined property: Exception::$previous in /in/lKANW on line 7 string(41) "Exception in :1337 Stack trace: #0 {main}"
Output for 5.6.28
Notice: Undefined property: Exception::$file in /in/lKANW on line 7 string(53) "exception 'Exception' in :1337 Stack trace: #0 {main}"
Output for 5.4.44 - 5.4.45, 5.5.28 - 5.5.35, 5.6.12 - 5.6.21
Notice: Undefined property: Exception::$message in /in/lKANW on line 7 Notice: Undefined property: Exception::$file in /in/lKANW on line 7 Notice: Undefined property: Exception::$previous in /in/lKANW on line 7 string(53) "exception 'Exception' in :1337 Stack trace: #0 {main}"
Output for 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.43, 5.5.24 - 5.5.27, 5.6.8 - 5.6.11

Process exited with code 139.
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
string(12) "Object id #1"
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9
string(6) "Object"

preferences:
242.46 ms | 402 KiB | 313 Q