3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class plus{ function a($a,$b) { return $c=$a+$b; } } $obj=new plus; var $c; $obj->a(2,3); echo $c; ?>
Output for 5.4.0 - 5.4.11
Parse error: syntax error, unexpected 'var' (T_VAR) in /in/d6Rgf on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.21
Parse error: syntax error, unexpected T_VAR in /in/d6Rgf on line 9
Process exited with code 255.