3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class test($a=1) { public memvar; public function __construct { $a += 100; $this->memvar = ++$a; } public function PlusOne { return $this->$memvar; } } $o = new test($a=25); var_dump($a);// 126?
Output for 5.3.0 - 5.4.23
Parse error: syntax error, unexpected '(', expecting '{' in /in/GtuI9 on line 2
Process exited with code 255.