3v4l.org

run code in 200+ 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 - 7.2.0
9876543210