3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A implements \Serializable { public function serialize() { $dt = new \DateTime(); return serialize(array($dt, serialize([$dt]))); } public function unserialize($serialized) { $a = unserialize($serialized); unserialize($a[1]); } } $a = new A(); $s = serialize($a); $d = unserialize($s);
Output for git.master, git.master_jit
Deprecated: A 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/QhgoL on line 3 Notice: unserialize(): Error at offset 13 of 165 bytes in /in/QhgoL on line 13 Warning: Trying to access array offset on value of type bool in /in/QhgoL on line 14 Deprecated: unserialize(): Passing null to parameter #1 ($data) of type string is deprecated in /in/QhgoL on line 14
Output for rfc.property-hooks
Deprecated: A 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/QhgoL on line 3 Warning: unserialize(): Error at offset 13 of 165 bytes in /in/QhgoL on line 13 Warning: Trying to access array offset on false in /in/QhgoL on line 14 Deprecated: unserialize(): Passing null to parameter #1 ($data) of type string is deprecated in /in/QhgoL on line 14

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:
42.71 ms | 402 KiB | 8 Q