3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class dupa { public $a; publiv function _construct() { echo '+_construct'; } public function dupa($param) { $this->$a = $param } } $a = new dupa('blabla');
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected 'publiv' (T_STRING), expecting function (T_FUNCTION) in /in/J4UvU 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_FUNCTION in /in/J4UvU on line 5
Process exited with code 255.