3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class boo{ private $boooo; function __construct(){ $this->boooo= $this->sagHallo(); } private function sagHallo(){ return "Hallo :D"; } public function getBoooo(){ echo $this->boooo; } } $bla= new boo(); $bla->getBoooo();
based on jgEEX
Output for 5.6.0 - 7.3.0alpha1
Hallo :D