3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { private $kaas; public function __construct() { $this->kaas = 'A'; } public function getKaas() { return $this->kaas; } } $b = new A(); $c = $b->getKaas(); echo "{$c}";
based on 5CPWk
Output for 5.3.18 - 7.3.0rc4
A