3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function staticCount() { static $counter = 0; echo $counter; $counter = $counter + 1; echo ' '; } staticCount(); staticCount(); staticCount();
based on FqEM5
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.1.0 - 7.2.6
0 1 2