3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function isPerfect($numbers) { return $numbers[0]*$numbers[1]*$numbers[2]*$numbers[3]; } var_dump(isPerfect([1,2,3,4]));
based on BWJi5
Output for 5.4.2 - 7.3.0beta1
int(24)
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/1WtBA on line 7
Process exited with code 255.