3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh class TestClass { private string $username="Dell"; function getName():int{ return $this->username; } } $t1=new TestClass(); echo $t1->getName();
Output for 5.3.0 - 5.4.32
<?hh class TestClass { private string $username="Dell"; function getName():int{ return $this->username; } } $t1=new TestClass(); echo $t1->getName();