3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(-1); class A { static $i=1; public static function test(){ var_dump(self); } } class B extends A { static $i=2; } B::test();