3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class a { function afunction() { static $test=10; $test--; echo $test; if($test>0) { $this->afunction(); } } } $testa = new a(); echo $testa->afunction();
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
9876543210