3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php <?php class Des { private $des; public function setDes($des) { $this->des = $des;} public function __destruct() { var_dump($this->des); } } $des1 = new Des(); $des2 = new Des(); $des1->setDes($des2); $des2->setDes($des1); var_dump($des1, $des2);
Output for 5.3.0 - 5.4.20
Parse error: syntax error, unexpected '<' in /in/afAYq on line 2
Process exited with code 255.