3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<html> <body> <?php function myTest() { static $x=0; echo $x=0; $x++; } myTest(); echo"<br>"; myTest(); echo"<br>"; myTest(); ?> </body> </html>
based on o18oZ
Output for 4.3.0 - 7.2.0
<html> <body> 0<br>0<br>0 </body> </html>