- Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
- Warning: Unsupported declare 'strict_types' in /in/bBMCl on line 3
Parse error: syntax error, unexpected ':', expecting '{' in /in/bBMCl on line 4
Process exited with code 255.
<?php
declare(strict_types=1);
function something(int $int, string $string): string {
return "{$string} {$int}";
}
something(9000, “Hello world >“); // Hello world > 9000