3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { private $blah =''; private function __construct($blah) { $this->blah = $blah; } public function getBlah() { return $this->blah; } } $baz = new foo('hello'); var_dump($baz->getBlah());

preferences:
34.09 ms | 402 KiB | 5 Q