3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Animal{ function __set($f, $v){ var_dump($f, $v); } } $a = new Animal; $a->name="bob"; $a->type="dog";
based on shKJY
Output for 5.0.0 - 7.2.0
string(4) "name" string(3) "bob" string(4) "type" string(3) "dog"
Output for 4.3.0 - 4.4.9