3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $var; public function buggy() { $bar = new Bar; $bar->prop = & $this->var; $bar->modify(); var_dump($this->var); } } class Bar { public $prop; public function modify() { $this->prop .= 'xxx'; } } $o = new Foo; $o->buggy();

preferences:
38.52 ms | 402 KiB | 5 Q