3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isPerfect($n) { return $n[0]*$n[1]*$n[2]*$n[3]+1 } var_dump(isPerfect(['a','b','c','d']));
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.30, 5.6.8 - 5.6.14
Parse error: syntax error, unexpected '}' in /in/Rff4S on line 5
Process exited with code 255.

preferences:
191.28 ms | 1395 KiB | 64 Q