3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public function __set($name, $value) { echo func_get_arg(0); $name = "xxx"; echo func_get_arg(0); } } $a = new A(); $a->test = 5;
based on vqaP4
Output for 7.0.0 - 7.2.0
testxxx
Output for 5.3.19 - 5.6.28
testtest