3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Token implements \Serializable { public function serialize() {} public function unserialize($str) { $r = unserialize($str); unserialize($r[2]); } } $token = 'gjhg jgt uybjh guy gyugkjh kjhiu h'; $obj = 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/m3SW7 on line 3 Notice: unserialize(): Error at offset 0 of 34 bytes in /in/m3SW7 on line 16
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/m3SW7 on line 3 Warning: unserialize(): Error at offset 0 of 34 bytes in /in/m3SW7 on line 16

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