3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Test() { static $one; public function Test($name) { if (!isset($this->one)) $this->one = 0; $this->one++; } } new Test("foo"); new Test("bar");
Output for 5.3.0 - 5.4.11
Parse error: syntax error, unexpected '(', expecting '{' in /in/pgIu6 on line 2
Process exited with code 255.