3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class test { private $test = 5; } $out = (function () : int { return $this->test; })->call(new test); var_dump($out);
Output for 7.3.0alpha1
int(5)