3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public $x; public function foo() { ($this->x)(42); } } $a = new A; $a->x = function($v) {var_dump($v);}; $a->foo();
based on HYiYm