3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function fibo($n) { if ($n < 2) { return 1; } return fibo($n - 1) + fibo($n - 2); } echo fibo(1); echo fibo(2); echo fibo(3); echo fibo(4); echo fibo(5);
based on bvcZq
Output for 4.3.0 - 7.1.0
12358