3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace CSBill\UserBundle\Entity { class User implements \Serializable { public function serialize() { } public function unserialize($serialized) { } } } namespace { $name = 'CSBill\UserBundle\Entity\User'; $string = sprintf('O:%d:"%s":0:{}', strlen($name), $name); var_dump(unserialize($string)); }
Output for git.master, git.master_jit
Deprecated: CSBill\UserBundle\Entity\User 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/PQJ8j on line 5 Warning: Erroneous data format for unserializing 'CSBill\UserBundle\Entity\User' in /in/PQJ8j on line 23 Notice: unserialize(): Error at offset 40 of 41 bytes in /in/PQJ8j on line 23 bool(false)
Output for rfc.property-hooks
Deprecated: CSBill\UserBundle\Entity\User 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/PQJ8j on line 5 Warning: Erroneous data format for unserializing 'CSBill\UserBundle\Entity\User' in /in/PQJ8j on line 23 Warning: unserialize(): Error at offset 40 of 41 bytes in /in/PQJ8j on line 23 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:
50.7 ms | 402 KiB | 8 Q