3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { private $private = 'private'; protected $protected = 'protected'; public $public = 'public'; } class bar extends foo { public function __sleep() { return array("\0foo\0private", '\0*\0protected', 'public'); } } var_dump(str_replace("\0", '\0', serialize(new bar())));
Output for git.master, git.master_jit, rfc.property-hooks
Warning: serialize(): "\0*\0protected" returned as member variable from __sleep() but does not exist in /in/7lDpA on line 18 string(76) "O:3:"bar":2:{s:12:"\0foo\0private";s:7:"private";s:6:"public";s:6:"public";}"

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:
41.32 ms | 401 KiB | 8 Q