3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Language{ private $LANG = array(); /* ERROR CODE 1 DATABASE 2 EMPTY USERNAME AND PASSWORD */ function __construct() { //1 DATABASE $this->LANG[1]["TITLE"] = "DATABASE CONNECTION ERROR"; $this->LANG[1]["MESSAGE"] = "PLEASE CONTACT YOUR ADMISTRATOR"; //2 EMPTY USERNAME AND PASSWORD $this->LANG[2]["TITLE"] = "LOGIN ERROR"; $this->LANG[2]["MESSAGE"] = "INVALID USERNAME OR PASSWORD"; //3 EMPTY QUERY ERROR $this->LANG[3]["TITLE"] = "ERROR"; $this->LANG[3]["MESSAGE"] = "UNABLE TO COMMUNICATE WITH SERVER"; } function getData() { return $this->LANG; } } $l = new Language(); var_dump($l->getData());
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [1]=> array(2) { ["TITLE"]=> string(25) "DATABASE CONNECTION ERROR" ["MESSAGE"]=> string(31) "PLEASE CONTACT YOUR ADMISTRATOR" } [2]=> array(2) { ["TITLE"]=> string(11) "LOGIN ERROR" ["MESSAGE"]=> string(28) "INVALID USERNAME OR PASSWORD" } [3]=> array(2) { ["TITLE"]=> string(5) "ERROR" ["MESSAGE"]=> string(33) "UNABLE TO COMMUNICATE WITH SERVER" } }

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:
29.59 ms | 406 KiB | 5 Q