3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class rec { public function test($i = 0, $r = 0) { $i += 2; $r += 1; if($i > 20) { echo "$i . Runden: $r"; } else { $this->test($i, $r); } } } $rec = new rec; $rec->test(1, 1);
based on qr5pW
Output for 5.5.0 - 7.2.6
21 . Runden: 11