3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class add{ function a($i) { $sum=1; for($x=$i;$x<5;i--) $sum=$sum*$x; } $obj=new add(); $obj->a(5);
Output for 5.4.0 - 5.4.11
Parse error: syntax error, unexpected '--' (T_DEC), expecting ')' in /in/XSVQc on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.21
Parse error: syntax error, unexpected T_DEC, expecting ')' in /in/XSVQc on line 7
Process exited with code 255.