- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
- Parse error: syntax error, unexpected 'test' (T_STRING), expecting ',' or ';' in /in/quHGh on line 15
Process exited with code 255.
<?php
$blah = false;
echo "calling function \n";
try {
test($blah);
}catch(\Error $e){
echo “Caught\n”;
print_r($e);
}
function test(array $val){
echo “inside test \n”;
print_r($val);
echo “\n”;
}
echo “done\n”;