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", 'protected', 'public'); } } var_dump(str_replace("\0", '\0', serialize(new bar())));
Output for git.master, git.master_jit, rfc.property-hooks
string(114) "O:3:"bar":3:{s:12:"\0foo\0private";s:7:"private";s:12:"\0*\0protected";s:9:"protected";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:
55.42 ms | 401 KiB | 8 Q