3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php <?php class A { public $foo = 1; } $a = new A; $b = $a; // $a and $b are copies of the same identifier // ($a) = ($b) = <id> $b->foo = 2; echo $a->foo."\n";
Output for 5.3.0 - 5.4.25
Parse error: syntax error, unexpected '<' in /in/l56Vq on line 3
Process exited with code 255.