3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CompanyConfig { protected $name; protected $db_name; protected $localdb_name; protected $logo_file_path; protected $logo_top_offset; protected $site_name; protected $css_class_name; public function getName() { return $this->name; } public function setName($name) { $this->name = $name; return $this; } public function getDbName() { return $this->db_name; } public function setDbName($db_name) { $this->db_name = $db_name; return $this; } public function getLogoFilePath() { return $this->logo_file_path; } public function setLogoFilePath($logo_file_path) { $this->logo_file_path = $logo_file_path; return $this; } public function getSiteName() { return $this->site_name; } public function setSiteName($site_name) { $this->site_name = $site_name; return $this; } public function getCssClassName() { return $this->css_class_name; } public function setCssClassName($css_class_name) { $this->css_class_name = $css_class_name; return $this; } public function getLogoTopOffset() { return $this->logo_top_offset; } public function setLogoTopOffset($logo_top_offset) { if (!is_numeric($logo_top_offset)) { throw new \InvalidArgumentException("'$logo_top_offset' must be numeric"); } $this->logo_top_offset = $logo_top_offset; return $this; } public function getStylesheetName() { return 'site_'.$this->getCssClassName(); } }
Output for git.master, git.master_jit, rfc.property-hooks

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