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;}'); var_dump($e);
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Fatal error: Uncaught TypeError: Cannot assign Exception to property Exception::$file of type string in /in/oPOV3:3 Stack trace: #0 /in/oPOV3(3): unserialize('O:9:"Exception"...') #1 {main} thrown in /in/oPOV3 on line 3
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Fatal error: Uncaught TypeError: Cannot assign Exception to property Exception::$file of type string in /in/oPOV3:3 Stack trace: #0 /in/oPOV3(3): unserialize('O:9:"Exception"...') #1 {main} thrown in /in/oPOV3 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/oPOV3:3 Stack trace: #0 /in/oPOV3(3): unserialize('O:9:"Exception"...') #1 {main} thrown in /in/oPOV3 on line 3
Process exited with code 255.
Output for 5.6.25 - 5.6.38, 7.0.10 - 7.0.33, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
object(Exception)#1 (5) { ["message":protected]=> NULL ["string":"Exception":private]=> string(1) "a" ["code":protected]=> int(0) ["line":protected]=> int(1337) ["trace":"Exception":private]=> array(0) { } }
Output for 5.4.44 - 5.4.45, 5.5.28 - 5.5.38, 5.6.12 - 5.6.24, 7.0.0 - 7.0.9
object(Exception)#1 (4) { ["string":"Exception":private]=> string(1) "a" ["code":protected]=> int(0) ["line":protected]=> int(1337) ["trace":"Exception":private]=> array(0) { } }
Output for 5.3.3 - 5.3.29, 5.4.0 - 5.4.43, 5.5.0 - 5.5.27, 5.6.0 - 5.6.11
object(Exception)#1 (7) { ["message":protected]=> NULL ["string":"Exception":private]=> string(1) "a" ["code":protected]=> int(0) ["file":protected]=> *RECURSION* ["line":protected]=> int(1337) ["trace":"Exception":private]=> array(0) { } ["previous":"Exception":private]=> int(10) }
Output for 5.3.0 - 5.3.2
object(Exception)#1 (7) { ["message":protected]=> NULL ["string":"Exception":private]=> string(1) "a" ["code":protected]=> int(0) ["file":protected]=> object(Exception)#1 (7) { ["message":protected]=> NULL ["string":"Exception":private]=> string(1) "a" ["code":protected]=> int(0) ["file":protected]=> *RECURSION* ["line":protected]=> int(1337) ["trace":"Exception":private]=> array(0) { } ["previous":"Exception":private]=> int(10) } ["line":protected]=> int(1337) ["trace":"Exception":private]=> array(0) { } ["previous":"Exception":private]=> int(10) }
Output for 5.2.14 - 5.2.17
object(Exception)#1 (7) { ["message:protected"]=> NULL ["string:private"]=> string(1) "a" ["code:protected"]=> int(0) ["file:protected"]=> *RECURSION* ["line:protected"]=> int(1337) ["trace:private"]=> array(0) { } ["previous:private"]=> int(10) }
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.13
object(Exception)#1 (7) { ["message:protected"]=> NULL ["string:private"]=> string(1) "a" ["code:protected"]=> int(0) ["file:protected"]=> object(Exception)#1 (7) { ["message:protected"]=> NULL ["string:private"]=> string(1) "a" ["code:protected"]=> int(0) ["file:protected"]=> *RECURSION* ["line:protected"]=> int(1337) ["trace:private"]=> array(0) { } ["previous:private"]=> int(10) } ["line:protected"]=> int(1337) ["trace:private"]=> array(0) { } ["previous:private"]=> int(10) }
Output for 4.3.5 - 4.3.11, 4.4.0 - 4.4.9
object(__PHP_Incomplete_Class)(8) { ["__PHP_Incomplete_Class_Name"]=> string(9) "exception" ["Exceptionstring"]=> string(1) "a" ["*code"]=> int(0) ["*file"]=> object(__PHP_Incomplete_Class)(8) { ["__PHP_Incomplete_Class_Name"]=> string(9) "exception" ["Exceptionstring"]=> string(1) "a" ["*code"]=> int(0) ["*file"]=> *RECURSION* ["*line"]=> int(1337) ["Exceptiontrace"]=> array(0) { } ["Exceptionprevious"]=> int(10) ["*message"]=> NULL } ["*line"]=> int(1337) ["Exceptiontrace"]=> array(0) { } ["Exceptionprevious"]=> int(10) ["*message"]=> NULL }
Output for 4.3.0 - 4.3.4
object(__PHP_Incomplete_Class)(8) { ["__PHP_Incomplete_Class_Name"]=> string(9) "exception" [""]=> string(1) "a" [""]=> int(0) [""]=> object(__PHP_Incomplete_Class)(8) { ["__PHP_Incomplete_Class_Name"]=> string(9) "exception" [""]=> string(1) "a" [""]=> int(0) [""]=> *RECURSION* [""]=> int(1337) [""]=> array(0) { } [""]=> int(10) [""]=> NULL } [""]=> int(1337) [""]=> array(0) { } [""]=> int(10) [""]=> NULL }

preferences:
353.43 ms | 402 KiB | 423 Q