3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i; $j; class add($i,$j) { $a=$i+$j; echo $a; } $obj=new add(); $obj->add(4,6);
Output for 5.3.0 - 5.4.11
Parse error: syntax error, unexpected '(', expecting '{' in /in/6D334 on line 4
Process exited with code 255.