3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo implements Serializable { public function serialize() { return null; } public function unserialize($data) {} } var_dump(unserialize('O:3:"Foo":0:{}'));
Output for git.master, git.master_jit
Deprecated: Foo 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/ek29p on line 3 Warning: Erroneous data format for unserializing 'Foo' in /in/ek29p on line 8 Notice: unserialize(): Error at offset 13 of 14 bytes in /in/ek29p on line 8 bool(false)
Output for rfc.property-hooks
Deprecated: Foo 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/ek29p on line 3 Warning: Erroneous data format for unserializing 'Foo' in /in/ek29p on line 8 Warning: unserialize(): Error at offset 13 of 14 bytes in /in/ek29p on line 8 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:
48.27 ms | 401 KiB | 8 Q