For example, is it possible to write code like this:
int $x = 6; str $y = \"hello world\"; bool $z = false; MyObject $foo = new MyObject();
In PHP 7 are implemented "Scalar Type Declarations", e.g.:
public function getBalance(): int { return 555; }
You need to declare, that you will use strict types:
More information: https://wiki.php.net/rfc/scalar_type_hints_v5