title: PHP static initializer
body: <p>I'd like to access a static field of a class in a static function, but the field is still <code>&lt;Uninitialized&gt;</code>. How can I initialize this field?</p>
  
  <pre><code>&lt;?php
  final class StaticTest {
      private static $lookup = array(123, 456, 789);
  
      public static function compute() {
          return StaticTest::$lookup[0];
      }
  }
  
  echo 'result: ' . StaticTest::compute();
  ?&gt;
  </code></pre>
  
  <p>As you can see in the following picture taken from the Eclipse PDT debugging the static field <code>$lookup</code> is <code>&lt;Unitialized&gt;</code>.
  <img src="https://i.stack.imgur.com/rnPFS.png" alt="PDT show that $lookup is unitialized"></p>