3v4l.org

run code in 300+ PHP versions simultaneously
<?php register_shutdown_function('gc_disable'); class A { public $e = array(); } class Token implements \Serializable { public function serialize() { $c = new A; for ($i = 0; $i < 4; $i++) { $e = new A; $c->e[] = $e; $e->e = $c->e; } return serialize(array(serialize($c))); } public function unserialize($str) { $r = unserialize($str); $r = unserialize($r[0]); } } $token = new Token; $token = serialize($token); unserialize($token);
Output for git.master, git.master_jit
Deprecated: Token implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /in/tUdTE on line 8 Notice: unserialize(): Error at offset 106 of 229 bytes in /in/tUdTE on line 26
Output for rfc.property-hooks
Deprecated: Token implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /in/tUdTE on line 8 Warning: unserialize(): Error at offset 106 of 229 bytes in /in/tUdTE on line 26

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