3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class foo { function muta($bar) { $new = &$this; $new = $bar; } } $a = new foo; $a->muta(new stdClass); echo get_class($a);
based on VPNWr
Output for 5.0.0 - 7.1.0
foo
Output for 4.3.0 - 4.4.9
stdClass