3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class aaa{ public $a; public $b; function show($a,$b){ $this->c = $a+$b echo $this->c; } } $xin = new aaa(); $xin->a=2; $xin->show(1,1); ?>
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0 - 5.4.11
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/ISbCF on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.21
Parse error: syntax error, unexpected T_ECHO in /in/ISbCF on line 7
Process exited with code 255.