3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class MyClass{ public $message="HI, all. I am"; public function introduce($name){ echo $this->message." ".$name; } } $clas=New MyClass(); $clas->introduce('SERGIO'); echo "</br>" $clas->message; ?>
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected '$clas' (T_VARIABLE), expecting ',' or ';' in /in/kdrdq on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /in/kdrdq on line 10
Process exited with code 255.