3v4l.org

run code in 300+ 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, git.master_jit, rfc.property-hooks
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:
129.6 ms | 405 KiB | 5 Q