3v4l.org

run code in 500+ PHP versions simultaneously
<?php class C { public $a = true; public function __sleep() { return 'ok'; } } $a = new C; $s = serialize($a); var_dump($s); var_dump(unserialize($s));
Output for git.master, rfc.property-hooks, git.master_jit
Warning: serialize(): C::__sleep() should return an array only containing the names of instance-variables to serialize in /in/rm9rs on line 13 string(2) "N;" NULL

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:
46.21 ms | 2703 KiB | 4 Q