3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ToS{function __toString(){die("hi");}} $e=new exception; unserialize('O:9:"Exception":7:{s:7:"message";s:0:"";s:15:"Exceptionstring";s:0:"";s:4:"code";i:0;s:4:"file";s:9:"/in/1Vigq";s:4:"line";i:2;s:14:"Exceptiontrace";a:0:{}s:17:"Exceptionprevious";O:3:"ToS":0:{}}'); echo serialize($e);
Output for 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Deprecated: Creation of dynamic property Exception::$Exceptionstring is deprecated in /in/QjML1 on line 4 Deprecated: Creation of dynamic property Exception::$Exceptiontrace is deprecated in /in/QjML1 on line 4 Deprecated: Creation of dynamic property Exception::$Exceptionprevious is deprecated in /in/QjML1 on line 4 O:9:"Exception":7:{s:10:"*message";s:0:"";s:17:"Exceptionstring";s:0:"";s:7:"*code";i:0;s:7:"*file";s:9:"/in/QjML1";s:7:"*line";i:3;s:16:"Exceptiontrace";a:0:{}s:19:"Exceptionprevious";N;}
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28
O:9:"Exception":7:{s:10:"*message";s:0:"";s:17:"Exceptionstring";s:0:"";s:7:"*code";i:0;s:7:"*file";s:9:"/in/QjML1";s:7:"*line";i:3;s:16:"Exceptiontrace";a:0:{}s:19:"Exceptionprevious";N;}

preferences:
269.28 ms | 404 KiB | 376 Q