3v4l.org

run code in 300+ PHP versions simultaneously
<?php class obj { var $y; function __wakeup() { $this->y = 1; } } $x = 'a:4:{i:0;i:1;i:1;O:9:"exception":1:{s:17:"'."\0".'Exception'."\0".'string";r:2;}i:2;O:3:"obj":1:{s:1:"y";R:3;}i:3;R:4;}'; $x = unserialize($x); for ($i = 0; $i < 5; $i++) { $v[$i] = 'hi'.$i; } var_dump($x);
Output for git.master, git.master_jit
Notice: unserialize(): Error at offset 65 of 105 bytes in /in/ahDr2 on line 12 bool(false)
Output for rfc.property-hooks
Warning: unserialize(): Error at offset 65 of 105 bytes in /in/ahDr2 on line 12 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:
19 ms | 401 KiB | 8 Q