3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { public $var = 1; } function addMe(Test $t) { $t->var++; } $c = new Test(); addMe($c); echo $c->var;