3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $a = "a"; protected $b = "b"; public $c = "c"; } class B extends A implements Serializable { public function serialize() { $that = $this; return serialize($that); } public function unserialize($serialized) { } private $a = "a"; protected $b = "b"; public $c = "c"; } var_dump(serialize(new A())); var_dump(serialize(new B()));
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: B 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/t2UQ2 on line 9 string(66) "O:1:"A":3:{s:4:"Aa";s:1:"a";s:4:"*b";s:1:"b";s:1:"c";s:1:"c";}" string(29) "C:1:"B":16:{C:1:"B":4:{r:2;}}"

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