3v4l.org

run code in 300+ PHP versions simultaneously
<?php print base64_decode('CmNsYXNzIHpvbWJpZQp7CiAgICBwcm90ZWN0ZWQgJHZhbDsKICAgIHB1YmxpYyBmdW5jdGlvbiBfX2NvbnN0cnVjdCgkdmFsKQogICAgewogICAgICAgICR0aGlzLT52YWwgPSAkdmFsOwogICAgfQoKICAgIHB1YmxpYyBmdW5jdGlvbiBfX2Rlc3RydWN0KCkKICAgIHsKICAgICAgICAkdGhpcy0+dmVzc2VsID0gJHRoaXM7CiAgICB9CgogICAgcHVibGljIGZ1bmN0aW9uIF9fdG9TdHJpbmcoKQogICAgewogICAgICAgIHJldHVybiAkdGhpcy0+dmFsOwogICAgfQp9CgokYW5zd2VyID0gbmV3IHpvbWJpZSgiNDIiKTsKJGFuc3dlci0+dmVzc2VsID0gJiRhbnN3ZXI7');
Output for git.master, git.master_jit, rfc.property-hooks
class zombie { protected $val; public function __construct($val) { $this->val = $val; } public function __destruct() { $this->vessel = $this; } public function __toString() { return $this->val; } } $answer = new zombie("42"); $answer->vessel = &$answer;

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