3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Test { function getStVar() { static $_stVar = 1; return $_stVar; } } $t = new Test(); echo $t->getStVar();
Output for 4.3.0 - 7.1.0
1