3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public static $p; } class B extends A { } A::$p = 'a'; B::$p = 'b'; var_dump(A::$p); var_dump(B::$p);
Output for 5.3.19 - 7.2.0
string(1) "b" string(1) "b"