3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { function __get($n) { $this->{$n} = 123; return 1; } function __set($n, $v) { var_dump($n, $v); } } $a = new A(); echo $a->fo;