title: Is it possible to write strictly typed PHP code?
body: <p>For example, is it possible to write code like this:</p>
  
  <pre><code>int $x = 6;
  str $y = "hello world";
  bool $z = false;
  MyObject $foo = new MyObject();
  </code></pre>
  
  <p>And is it possible to define functions like this:</p>
  
  <pre><code>public int function getBalance()
  {
     return 555; //Or any numeric value
  }
  </code></pre>