3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { function __set($var,$val) { var_dump($var); $this->$var = $val; } } $f = new Foo; $f->goo=123;
based on rQnis
Output for 5.0.0 - 5.4.38, 5.4.41 - 7.1.0
string(3) "goo"
Output for 5.4.39 - 5.4.40

Process exited with code 137.
Output for 4.3.0 - 4.4.9