3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { public function __toString() { return null; } } $array = array(); $a = new A: $array[$a] = $a; $array[$a] = $a; var_dump($array);
Output for 5.3.0 - 5.4.4
Parse error: syntax error, unexpected ':' in /in/nH6MT on line 10
Process exited with code 255.