3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class myClass{ public $z; public function_construct($z = 5){ $this->z = 10; } } $a = new myClass(); $b = $a; $b-> = 0; echo $a->z;
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected 'function_construct' (T_STRING), expecting variable (T_VARIABLE) in /in/5ZDSL on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE in /in/5ZDSL on line 5
Process exited with code 255.