- Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16, 7.0.0 - 7.0.1
- Parse error: syntax error, unexpected '$a' (T_VARIABLE) in /in/BEO2u on line 6
Process exited with code 255.
<?php
function add(int $a, int $b) {
return $a + $b;
}
int $a = 5;
int $b = 3;
echo(add($a, $b));