3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class abc{ private $a; private $b; function add($a,$b) { $c=$a+$b; echo $c; } } $obj = new abc(); $this->add(1,2)
Output for 5.4.0 - 5.4.11
Parse error: syntax error, unexpected end of file in /in/9MDIG on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.21
Parse error: syntax error, unexpected $end in /in/9MDIG on line 13
Process exited with code 255.